[
https://issues.apache.org/jira/browse/SOLR-5473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13954610#comment-13954610
]
Shalin Shekhar Mangar commented on SOLR-5473:
---------------------------------------------
I ran into a wierd error on one of my test runs:
{code}
[junit4] 2> NOTE: reproduce with: ant test
-Dtestcase=CollectionsAPIDistributedZkTest -Dtests.method=testDistribSearch
-Dtests.seed=3E56FB4CCC2F1223 -Dtests.slow=true -Dtests.locale=fr_FR
-Dtests.timezone=Asia/Hovd -Dtests.file.encoding=ISO-8859-1
[junit4] ERROR 86.7s J0 |
CollectionsAPIDistributedZkTest.testDistribSearch <<<
[junit4] > Throwable #1:
com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught
exception in thread: Thread[id=1767, name=RecoveryThread, state=RUNNABLE,
group=TGRP-CollectionsAPIDistributedZkTest]
[junit4] > at
__randomizedtesting.SeedInfo.seed([3E56FB4CCC2F1223:BFB07554BB70721F]:0)
[junit4] > Caused by: java.lang.StackOverflowError
[junit4] > at
__randomizedtesting.SeedInfo.seed([3E56FB4CCC2F1223]:0)
[junit4] > at
org.apache.log4j.spi.LoggingEvent.getLocationInformation(LoggingEvent.java:253)
[junit4] > at
org.apache.solr.util.SolrLogLayout._format(SolrLogLayout.java:124)
[junit4] > at
org.apache.solr.util.SolrLogLayout.format(SolrLogLayout.java:110)
[junit4] > at
org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:310)
[junit4] > at
org.apache.log4j.WriterAppender.append(WriterAppender.java:162)
[junit4] > at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
[junit4] > at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
[junit4] > at
org.apache.log4j.Category.callAppenders(Category.java:206)
[junit4] > at
org.apache.log4j.Category.forcedLog(Category.java:391)
[junit4] > at org.apache.log4j.Category.log(Category.java:856)
[junit4] > at
org.slf4j.impl.Log4jLoggerAdapter.warn(Log4jLoggerAdapter.java:400)
[junit4] > at
org.apache.solr.common.cloud.ZkStateReader.getExternCollection(ZkStateReader.java:722)
[junit4] > at
org.apache.solr.common.cloud.ClusterState.loadExtDocCollection(ClusterState.java:178)
[junit4] > at
org.apache.solr.common.cloud.ClusterState.getCollectionOrNull(ClusterState.java:185)
[junit4] > at
org.apache.solr.common.cloud.ClusterState.getReplica(ClusterState.java:118)
[junit4] > at
org.apache.solr.util.SolrLogLayout.getReplicaProps(SolrLogLayout.java:234)
[junit4] > at
org.apache.solr.util.SolrLogLayout._format(SolrLogLayout.java:164)
[junit4] > at
org.apache.solr.util.SolrLogLayout.format(SolrLogLayout.java:110)
[junit4] > at
org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:310)
[junit4] > at
org.apache.log4j.WriterAppender.append(WriterAppender.java:162)
[junit4] > at
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
[junit4] > at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
[junit4] > at
org.apache.log4j.Category.callAppenders(Category.java:206)
[junit4] > at
org.apache.log4j.Category.forcedLog(Category.java:391)
[junit4] > at org.apache.log4j.Category.log(Category.java:856)
[junit4] > at
org.slf4j.impl.Log4jLoggerAdapter.warn(Log4jLoggerAdapter.java:400)
[junit4] > at
org.apache.solr.common.cloud.ZkStateReader.getExternCollection(ZkStateReader.java:722)
[junit4] > at
org.apache.solr.common.cloud.ClusterState.loadExtDocCollection(ClusterState.java:178)
[junit4] > at
org.apache.solr.common.cloud.ClusterState.getCollectionOrNull(ClusterState.java:185)
[junit4] > at
org.apache.solr.common.cloud.ClusterState.getReplica(ClusterState.java:118)
[junit4] > at
org.apache.solr.util.SolrLogLayout.getReplicaProps(SolrLogLayout.java:234)
[junit4] > at
org.apache.solr.util.SolrLogLayout._format(SolrLogLayout.java:164)
[junit4] > at
org.apache.solr.util.SolrLogLayout.format(SolrLogLayout.java:110)
[junit4] > at
org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:310)
{code}
It seems that logger is trying to read a replica property which doesn't exist
and therefore calls getExternCollections which also fails and tries to log a
warning which causes an infinite loop and a stack overflow.
> Make one state.json per collection
> ----------------------------------
>
> Key: SOLR-5473
> URL: https://issues.apache.org/jira/browse/SOLR-5473
> Project: Solr
> Issue Type: Sub-task
> Components: SolrCloud
> Reporter: Noble Paul
> Assignee: Noble Paul
> Attachments: SOLR-5473-74.patch, SOLR-5473-74.patch,
> SOLR-5473-74.patch, SOLR-5473-74.patch, SOLR-5473-74.patch,
> SOLR-5473-74.patch, SOLR-5473-74.patch, SOLR-5473-74.patch,
> SOLR-5473-74.patch, SOLR-5473-74.patch, SOLR-5473-74.patch,
> SOLR-5473-74.patch, SOLR-5473.patch, SOLR-5473.patch, SOLR-5473.patch,
> SOLR-5473.patch, SOLR-5473.patch, SOLR-5473.patch, SOLR-5473.patch,
> SOLR-5473.patch, SOLR-5473.patch, SOLR-5473.patch, SOLR-5473.patch,
> SOLR-5473.patch, SOLR-5473.patch, SOLR-5473.patch, SOLR-5473.patch,
> SOLR-5473.patch, SOLR-5473.patch, SOLR-5473.patch, ec2-23-20-119-52_solr.log,
> ec2-50-16-38-73_solr.log
>
>
> As defined in the parent issue, store the states of each collection under
> /collections/collectionname/state.json node
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]