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

Steve Rowe commented on SOLR-10824:
-----------------------------------

Policeman Jenkins found a reproducing seed for 
{{TestPullReplica.testKillLeader()}} that {{git bisect}} blames on commit 
{{7c448623ccb}} on this issue 
[https://jenkins.thetaphi.de/job/Lucene-Solr-master-Linux/19974]:

{noformat}
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestPullReplica 
-Dtests.method=testKillLeader -Dtests.seed=E7D383DCC0B7483C 
-Dtests.multiplier=3 -Dtests.slow=true -Dtests.locale=ar-KW 
-Dtests.timezone=Australia/Queensland -Dtests.asserts=true 
-Dtests.file.encoding=UTF-8
   [junit4] FAILURE 96.4s J2 | TestPullReplica.testKillLeader <<<
   [junit4]    > Throwable #1: java.lang.AssertionError: Replica state not 
updated in cluster state
   [junit4]    > null
   [junit4]    > Live Nodes: [127.0.0.1:44447_solr, 127.0.0.1:34771_solr]
   [junit4]    > Last available state: 
DocCollection(pull_replica_test_kill_leader//collections/pull_replica_test_kill_leader/state.json/6)={
   [junit4]    >   "pullReplicas":"1",
   [junit4]    >   "replicationFactor":"1",
   [junit4]    >   "shards":{"shard1":{
   [junit4]    >       "range":"80000000-7fffffff",
   [junit4]    >       "state":"active",
   [junit4]    >       "replicas":{
   [junit4]    >         "core_node1":{
   [junit4]    >           
"core":"pull_replica_test_kill_leader_shard1_replica_n1",
   [junit4]    >           "base_url":"http://127.0.0.1:44447/solr";,
   [junit4]    >           "node_name":"127.0.0.1:44447_solr",
   [junit4]    >           "state":"down",
   [junit4]    >           "type":"NRT",
   [junit4]    >           "leader":"true"},
   [junit4]    >         "core_node2":{
   [junit4]    >           
"core":"pull_replica_test_kill_leader_shard1_replica_p1",
   [junit4]    >           "base_url":"http://127.0.0.1:34771/solr";,
   [junit4]    >           "node_name":"127.0.0.1:34771_solr",
   [junit4]    >           "state":"active",
   [junit4]    >           "type":"PULL"}}}},
   [junit4]    >   "router":{"name":"compositeId"},
   [junit4]    >   "maxShardsPerNode":"100",
   [junit4]    >   "autoAddReplicas":"false",
   [junit4]    >   "nrtReplicas":"1",
   [junit4]    >   "tlogReplicas":"0"}
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([E7D383DCC0B7483C:AEC57768A20CDC6A]:0)
   [junit4]    >        at 
org.apache.solr.cloud.SolrCloudTestCase.waitForState(SolrCloudTestCase.java:269)
   [junit4]    >        at 
org.apache.solr.cloud.TestPullReplica.doTestNoLeader(TestPullReplica.java:401)
   [junit4]    >        at 
org.apache.solr.cloud.TestPullReplica.testKillLeader(TestPullReplica.java:290)
   [junit4]    >        at java.lang.Thread.run(Thread.java:748)
{noformat}


> 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
>             Fix For: master (7.0), 6.7
>
>         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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to