[ 
https://issues.apache.org/jira/browse/SOLR-10824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16062383#comment-16062383
 ] 

Mikhail Khludnev edited comment on SOLR-10824 at 6/25/17 5:29 PM:
------------------------------------------------------------------

# it fails on ith distrib test iteration, where i>1
# it looks like max doc difference between shaded {{ 6.0 = docCount}} and 
control {{12.0 = docCount}}
{code}
======================= Control Response =======================
{responseHeader={status=0,QTime=1},response={numFound=1,start=0,maxScore=2.871802,docs=[SolrDocument{id=11,
 range_facet_l=[11], id_i1=11, range_facet_l_dv=[11], range_facet_i_dv=[11], 
a_t=[one two three], shard_i=[3], multiDefault=[muLti-Default], 

rawquerystring=id:11,querystring=id:11,parsedquery=id:11,parsedquery_toString=id:11,explain={11=
2.871802 = weight(id:11 in 3) [MockConfigurableSimilarity], result of:
  2.871802 = fieldWeight in 3, product of:
    1.0 = tf(freq=1.0), with freq of:
      1.0 = termFreq=1.0
    2.871802 = idf, computed as log((docCount+1)/(docFreq+1)) + 1 from:
      1.0 = docFreq
      12.0 = docCount
    1.0 = fieldNorm(doc=3)
},QParser=LuceneQParser,timing={time=1.0,


======================= Shard Response =======================

{responseHeader={status=0,QTime=12},response={numFound=1,start=0,maxScore=2.252763,docs=[SolrDocument{id=11,
 range_facet_l=[11], id_i1=11, range_facet_l_dv=[11], range_facet_i_dv=[11], 
debug={rawquerystring=id:11,querystring=id:11,parsedquery=id:11,parsedquery_toString=id:11,explain={11=
2.252763 = weight(id:11 in 0) [MockConfigurableSimilarity], result of:
  2.252763 = fieldWeight in 0, product of:
    1.0 = tf(freq=1.0), with freq of:
      1.0 = termFreq=1.0
    2.252763 = idf, computed as log((docCount+1)/(docFreq+1)) + 1 from:
      1.0 = docFreq
      6.0 = docCount
    1.0 = fieldNorm(doc=0)
},QParser=LuceneQParser,
rawquerystring=id:11,querystring=id:11,parsedquery=id:11,parsedquery_toString=id:11,QParser=LuceneQParser,explain={11=
2.252763 = weight(id:11 in 0) [MockConfigurableSimilarity], result of:
  2.252763 = fieldWeight in 0, product of:
    1.0 = tf(freq=1.0), with freq of:
      1.0 = termFreq=1.0
    2.252763 = idf, computed as log((docCount+1)/(docFreq+1)) + 1 from:
      1.0 = docFreq
      6.0 = docCount
    1.0 = fieldNorm(doc=0)
}}}
{code}   

# obviously, {{optimize=true}} fixes it. 



was (Author: mkhludnev):
# it fails on ith distrib test iteration, where i>1
# it looks like max doc difference between shaded {{ 6.0 = docCount}} and 
control {{12.0 = docCount}}
{code}
======================= Control Response =======================
{responseHeader={status=0,QTime=1},response={numFound=1,start=0,maxScore=2.871802,docs=[SolrDocument{id=11,
 range_facet_l=[11], id_i1=11, range_facet_l_dv=[11], range_facet_i_dv=[11], 
a_t=[one two three], shard_i=[3], multiDefault=[muLti-Default], 

rawquerystring=id:11,querystring=id:11,parsedquery=id:11,parsedquery_toString=id:11,explain={11=
2.871802 = weight(id:11 in 3) [MockConfigurableSimilarity], result of:
  2.871802 = fieldWeight in 3, product of:
    1.0 = tf(freq=1.0), with freq of:
      1.0 = termFreq=1.0
    2.871802 = idf, computed as log((docCount+1)/(docFreq+1)) + 1 from:
      1.0 = docFreq
      12.0 = docCount
    1.0 = fieldNorm(doc=3)
},QParser=LuceneQParser,timing={time=1.0,


======================= Shard Response =======================

{responseHeader={status=0,QTime=12},response={numFound=1,start=0,maxScore=2.252763,docs=[SolrDocument{id=11,
 range_facet_l=[11], id_i1=11, range_facet_l_dv=[11], range_facet_i_dv=[11], 
debug={rawquerystring=id:11,querystring=id:11,parsedquery=id:11,parsedquery_toString=id:11,explain={11=
2.252763 = weight(id:11 in 0) [MockConfigurableSimilarity], result of:
  2.252763 = fieldWeight in 0, product of:
    1.0 = tf(freq=1.0), with freq of:
      1.0 = termFreq=1.0
    2.252763 = idf, computed as log((docCount+1)/(docFreq+1)) + 1 from:
      1.0 = docFreq
      6.0 = docCount
    1.0 = fieldNorm(doc=0)
},QParser=LuceneQParser,
rawquerystring=id:11,querystring=id:11,parsedquery=id:11,parsedquery_toString=id:11,QParser=LuceneQParser,explain={11=
2.252763 = weight(id:11 in 0) [MockConfigurableSimilarity], result of:
  2.252763 = fieldWeight in 0, product of:
    1.0 = tf(freq=1.0), with freq of:
      1.0 = termFreq=1.0
    2.252763 = idf, computed as log((docCount+1)/(docFreq+1)) + 1 from:
      1.0 = docFreq
      6.0 = docCount
    1.0 = fieldNorm(doc=0)
}}}
{code}   

obviously {{optimize=true}} fixed it. The question is it valid to subtract 
numdeleted docs from maxdocs when distribute coll.stats ??


> java.lang.NullPointerException ExactSharedStatsCache.getPerShardTermStats 
> --------------------------------------------------------------------------
>
>                 Key: SOLR-10824
>                 URL: https://issues.apache.org/jira/browse/SOLR-10824
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: search
>    Affects Versions: 6.6
>            Reporter: Mikhail Khludnev
>            Priority: Minor
>         Attachments: SOLR-10824.patch, SOLR-10824.patch, SOLR-10824.patch
>
>
> {quote}
>  INFO [qtp411311908-32] (SolrCore.java:2304) - [collection1_shard3_replica2]  
> webapp=/solr path=/select 
> params={..&distrib=false&_stateVer_=collection1:5...&shards.purpose=32768&shard.url=http://127.0.0.1:57114/solr/collection1_shard3_replica2/|http://127.0.0.1:57112/solr/collection1_shard3_replica1/&version=2....)&NOW=1496751847089&isShard=true&applicability.frm=FRM&wt=javabin}
>  status=0 QTime=18
> INFO [qtp2123780104-30] (SolrCore.java:2304) - [collection1_shard1_replica1] 
> ...
>  INFO [qtp411311908-45] (SolrCore.java:2304) - [collection1_shard2_replica1]  
> ...
> ERROR [qtp411311908-33] (SolrException.java:148) - 
> java.lang.NullPointerException
>       at 
> org.apache.solr.search.stats.ExactSharedStatsCache.getPerShardTermStats(ExactSharedStatsCache.java:76)
>       at 
> org.apache.solr.search.stats.ExactStatsCache.sendGlobalStats(ExactStatsCache.java:233)
>       at 
> org.apache.solr.handler.component.QueryComponent.createMainQuery(QueryComponent.java:930)
>       at 
> org.apache.solr.handler.component.QueryComponent.regularDistributedProcess(QueryComponent.java:726)
>       at 
> org.apache.solr.handler.component.QueryComponent.distributedProcess(QueryComponent.java:679)
>       at 
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:345)
>  INFO [qtp411311908-33] (SolrCore.java:2304) - [collection1_shard3_replica2]  
> webapp=/solr path=/select params={...&wt=javabin&version=2} status=500 
> QTime=82
> {quote}
> Switching to {{LRUStatsCache}} seems help.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to