You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Andrzej Bialecki (JIRA)" <ji...@apache.org> on 2018/09/20 16:00:00 UTC

[jira] [Updated] (SOLR-12788) RecoveryStrategy throws IndexOutOfBoundsException

     [ https://issues.apache.org/jira/browse/SOLR-12788?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrzej Bialecki  updated SOLR-12788:
-------------------------------------
    Description: 
I spotted this when trying to reproduce a test failure:
{code}
   [junit4]   2> 32176 ERROR (recoveryExecutor-132-thread-1-processing-n:127.0.0.1:53696_i x:collection1_shard4_replica_n93 c:collection1 s:shard4 r:core_node94) [n:127.0.0.1:53696_i c:collection1 s:shard4 r:core_node94 x:collection1_shard4_replica_n93] o.a.s.c.RecoveryStrategy Error getting recent versions.:java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
   [junit4]   2> 	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
   [junit4]   2> 	at java.util.ArrayList.get(ArrayList.java:429)
   [junit4]   2> 	at org.apache.solr.cloud.RecoveryStrategy.doSyncOrReplicateRecovery(RecoveryStrategy.java:491)
   [junit4]   2> 	at org.apache.solr.cloud.RecoveryStrategy.doRecovery(RecoveryStrategy.java:310)
   [junit4]   2> 	at org.apache.solr.cloud.RecoveryStrategy.run(RecoveryStrategy.java:294)
   [junit4]   2> 	at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176)
   [junit4]   2> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   [junit4]   2> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   [junit4]   2> 	at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:209)
   [junit4]   2> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   [junit4]   2> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   [junit4]   2> 	at java.lang.Thread.run(Thread.java:745)
{code}

This reproduces consistently with the following command:
{code}
ant test  -Dtestcase=ShardRoutingTest -Dtests.method=test -Dtests.seed=FF7B7D65A8936A3D -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=ar-BH -Dtests.timezone=Indian/Mahe -Dtests.asserts=true -Dtests.file.encoding=US-ASCII
{code}

  was:
I spotted this when trying to reproduce a test failure:
{code}
   [junit4]   2> 32176 ERROR (recoveryExecutor-132-thread-1-processing-n:127.0.0.1:53696_i x:collection1_shard4_replica_n93 c:collection1 s:shard4 r:core_node94) [n:127.0.0.1:53696_i c:collection1 s:shard4 r:core_node94 x:collection1_shard4_replica_n93] o.a.s.c.RecoveryStrategy Error getting recent versions.:java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
   [junit4]   2> 	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
   [junit4]   2> 	at java.util.ArrayList.get(ArrayList.java:429)
   [junit4]   2> 	at org.apache.solr.cloud.RecoveryStrategy.doSyncOrReplicateRecovery(RecoveryStrategy.java:491)
   [junit4]   2> 	at org.apache.solr.cloud.RecoveryStrategy.doRecovery(RecoveryStrategy.java:310)
   [junit4]   2> 	at org.apache.solr.cloud.RecoveryStrategy.run(RecoveryStrategy.java:294)
   [junit4]   2> 	at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176)
   [junit4]   2> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   [junit4]   2> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   [junit4]   2> 	at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:209)
   [junit4]   2> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   [junit4]   2> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   [junit4]   2> 	at java.lang.Thread.run(Thread.java:745)
{code}

This is reproduces consistently with the following command:
{code}
ant test  -Dtestcase=ShardRoutingTest -Dtests.method=test -Dtests.seed=FF7B7D65A8936A3D -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=ar-BH -Dtests.timezone=Indian/Mahe -Dtests.asserts=true -Dtests.file.encoding=US-ASCII
{code}


> RecoveryStrategy throws IndexOutOfBoundsException
> -------------------------------------------------
>
>                 Key: SOLR-12788
>                 URL: https://issues.apache.org/jira/browse/SOLR-12788
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: master (8.0)
>            Reporter: Andrzej Bialecki 
>            Priority: Major
>
> I spotted this when trying to reproduce a test failure:
> {code}
>    [junit4]   2> 32176 ERROR (recoveryExecutor-132-thread-1-processing-n:127.0.0.1:53696_i x:collection1_shard4_replica_n93 c:collection1 s:shard4 r:core_node94) [n:127.0.0.1:53696_i c:collection1 s:shard4 r:core_node94 x:collection1_shard4_replica_n93] o.a.s.c.RecoveryStrategy Error getting recent versions.:java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
>    [junit4]   2> 	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
>    [junit4]   2> 	at java.util.ArrayList.get(ArrayList.java:429)
>    [junit4]   2> 	at org.apache.solr.cloud.RecoveryStrategy.doSyncOrReplicateRecovery(RecoveryStrategy.java:491)
>    [junit4]   2> 	at org.apache.solr.cloud.RecoveryStrategy.doRecovery(RecoveryStrategy.java:310)
>    [junit4]   2> 	at org.apache.solr.cloud.RecoveryStrategy.run(RecoveryStrategy.java:294)
>    [junit4]   2> 	at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176)
>    [junit4]   2> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>    [junit4]   2> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>    [junit4]   2> 	at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:209)
>    [junit4]   2> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>    [junit4]   2> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>    [junit4]   2> 	at java.lang.Thread.run(Thread.java:745)
> {code}
> This reproduces consistently with the following command:
> {code}
> ant test  -Dtestcase=ShardRoutingTest -Dtests.method=test -Dtests.seed=FF7B7D65A8936A3D -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=ar-BH -Dtests.timezone=Indian/Mahe -Dtests.asserts=true -Dtests.file.encoding=US-ASCII
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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