Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D331F10CA3 for ; Sun, 30 Mar 2014 07:54:25 +0000 (UTC) Received: (qmail 22389 invoked by uid 500); 30 Mar 2014 07:54:23 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 21881 invoked by uid 500); 30 Mar 2014 07:54:20 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 21858 invoked by uid 99); 30 Mar 2014 07:54:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Mar 2014 07:54:18 +0000 Date: Sun, 30 Mar 2014 07:54:18 +0000 (UTC) From: "Shalin Shekhar Mangar (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SOLR-5473) Make one state.json per collection MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org