[jira] [Commented] (SOLR-9426) TesReplicationHandler.doTestIndexAndConfigAliasReplication() failure

2016-09-13 Thread Alan Woodward (JIRA)

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

Alan Woodward commented on SOLR-9426:
-

There are two Exceptions that get thrown here, the "can't write 
replication.properties twice" one above (which is enforced by 
MockDirectoryWrapper, and so won't actually cause problems outside tests) and a 
"failed to close IndexWriter" one.  The latter is the one that occasionally 
causes test failures, although sometimes it just gets swallowed silently - I'm 
not entirely clear why, but it makes reproducing these very tricky.  The 
IndexWriter closure failure is because on reload, SolrCore tries to remove old 
index directories, but it does this before closing the old IndexWriter, which 
tries to execute a rollback on its uncommitted data.

{code}
73098 ERROR (Thread-165) [x:collection1] o.a.s.u.SolrIndexWriter Error 
closing IndexWriter
   [junit4]   2> java.nio.file.NoSuchFileException: 
/home/jenkins/workspace/Lucene-Solr-master-Linux/solr/build/solr-core/test/J0/temp/solr.handler.TestReplicationHandler_1B92CBF81297145D-001/solr-instance-002/collection1/data/index.20160912005540509
   [junit4]   2>at 
sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
   [junit4]   2>at 
sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
   [junit4]   2>at 
sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
   [junit4]   2>at 
sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:427)
   [junit4]   2>at 
java.nio.file.Files.newDirectoryStream(Files.java:457)
   [junit4]   2>at 
org.apache.lucene.store.FSDirectory.listAll(FSDirectory.java:215)
   [junit4]   2>at 
org.apache.lucene.store.FSDirectory.listAll(FSDirectory.java:234)
   [junit4]   2>at 
org.apache.lucene.store.NRTCachingDirectory.listAll(NRTCachingDirectory.java:103)
   [junit4]   2>at 
org.apache.lucene.store.FilterDirectory.listAll(FilterDirectory.java:57)
   [junit4]   2>at 
org.apache.lucene.index.IndexFileDeleter.refresh(IndexFileDeleter.java:428)
   [junit4]   2>at 
org.apache.lucene.index.IndexWriter.rollbackInternalNoCommit(IndexWriter.java:2220)
   [junit4]   2>at 
org.apache.lucene.index.IndexWriter.rollbackInternal(IndexWriter.java:2162)
   [junit4]   2>at 
org.apache.lucene.index.IndexWriter.shutdown(IndexWriter.java:1120)
   [junit4]   2>at 
org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1162)
   [junit4]   2>at 
org.apache.solr.update.SolrIndexWriter.close(SolrIndexWriter.java:130)
   [junit4]   2>at 
org.apache.solr.update.DefaultSolrCoreState.changeWriter(DefaultSolrCoreState.java:188)
   [junit4]   2>at 
org.apache.solr.update.DefaultSolrCoreState.newIndexWriter(DefaultSolrCoreState.java:212)
   [junit4]   2>at 
org.apache.solr.core.SolrCore.reload(SolrCore.java:507)
   [junit4]   2>at 
org.apache.solr.core.CoreContainer.reload(CoreContainer.java:962)
   [junit4]   2>at 
org.apache.solr.handler.IndexFetcher.lambda$reloadCore$0(IndexFetcher.java:787)
   [junit4]   2>at java.lang.Thread.run(Thread.java:745)
{code}

> TesReplicationHandler.doTestIndexAndConfigAliasReplication() failure
> 
>
> Key: SOLR-9426
> URL: https://issues.apache.org/jira/browse/SOLR-9426
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>Reporter: Steve Rowe
>
> My Jenkins found this branch_6x seed (reproduces for me, but only if I remove 
> {{-Dtests.method=doTestIndexAndConfigAliasReplication}} from the cmdline):
> {noformat}
> Checking out Revision 44df5b60266549e410b7691ebf49583d7370c0e3 
> (refs/remotes/origin/branch_6x)
> [...]
>[junit4]   2> NOTE: reproduce with: ant test  
> -Dtestcase=TestReplicationHandler 
> -Dtests.method=doTestIndexAndConfigAliasReplication 
> -Dtests.seed=8D2C8D836AE82A81 -Dtests.slow=true -Dtests.locale=pt-PT 
> -Dtests.timezone=America/Panama -Dtests.asserts=true 
> -Dtests.file.encoding=UTF-8
>[junit4] FAILURE 37.2s J3  | 
> TestReplicationHandler.doTestIndexAndConfigAliasReplication <<<
>[junit4]> Throwable #1: java.lang.AssertionError: expected:<1> but 
> was:<0>
>[junit4]>  at 
> __randomizedtesting.SeedInfo.seed([8D2C8D836AE82A81:7A5F63DBAC008567]:0)
>[junit4]>  at 
> org.apache.solr.handler.TestReplicationHandler.doTestIndexAndConfigAliasReplication(TestReplicationHandler.java:1331)
>[junit4]>  at java.lang.Thread.run(Thread.java:745)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, 

[jira] [Commented] (SOLR-9426) TesReplicationHandler.doTestIndexAndConfigAliasReplication() failure

2016-09-07 Thread Alan Woodward (JIRA)

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

Alan Woodward commented on SOLR-9426:
-

See also: https://builds.apache.org/job/Lucene-Solr-Tests-master/1385/

Going through the logs, this seems to be caused by the following Exception:
{code}
 [junit4]   2> 1585983 WARN  (indexFetcher-4517-thread-1) [x:collection1] 
o.a.s.h.IndexFetcher Exception while updating statistics
   [junit4]   2> java.io.IOException: file "replication.properties" was already 
written to
   [junit4]   2>at 
org.apache.lucene.store.MockDirectoryWrapper.createOutput(MockDirectoryWrapper.java:654)
   [junit4]   2>at 
org.apache.solr.handler.IndexFetcher.logReplicationTimeAndConfFiles(IndexFetcher.java:695)
   [junit4]   2>at 
org.apache.solr.handler.IndexFetcher.fetchLatestIndex(IndexFetcher.java:507)
   [junit4]   2>at 
org.apache.solr.handler.IndexFetcher.fetchLatestIndex(IndexFetcher.java:268)
   [junit4]   2>at 
org.apache.solr.handler.ReplicationHandler.doFetch(ReplicationHandler.java:397)
   [junit4]   2>at 
org.apache.solr.handler.ReplicationHandler.lambda$setupPolling$2(ReplicationHandler.java:1154)
   [junit4]   2>at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   [junit4]   2>at 
java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
   [junit4]   2>at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
   [junit4]   2>at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
   [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}

> TesReplicationHandler.doTestIndexAndConfigAliasReplication() failure
> 
>
> Key: SOLR-9426
> URL: https://issues.apache.org/jira/browse/SOLR-9426
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>Reporter: Steve Rowe
>
> My Jenkins found this branch_6x seed (reproduces for me, but only if I remove 
> {{-Dtests.method=doTestIndexAndConfigAliasReplication}} from the cmdline):
> {noformat}
> Checking out Revision 44df5b60266549e410b7691ebf49583d7370c0e3 
> (refs/remotes/origin/branch_6x)
> [...]
>[junit4]   2> NOTE: reproduce with: ant test  
> -Dtestcase=TestReplicationHandler 
> -Dtests.method=doTestIndexAndConfigAliasReplication 
> -Dtests.seed=8D2C8D836AE82A81 -Dtests.slow=true -Dtests.locale=pt-PT 
> -Dtests.timezone=America/Panama -Dtests.asserts=true 
> -Dtests.file.encoding=UTF-8
>[junit4] FAILURE 37.2s J3  | 
> TestReplicationHandler.doTestIndexAndConfigAliasReplication <<<
>[junit4]> Throwable #1: java.lang.AssertionError: expected:<1> but 
> was:<0>
>[junit4]>  at 
> __randomizedtesting.SeedInfo.seed([8D2C8D836AE82A81:7A5F63DBAC008567]:0)
>[junit4]>  at 
> org.apache.solr.handler.TestReplicationHandler.doTestIndexAndConfigAliasReplication(TestReplicationHandler.java:1331)
>[junit4]>  at java.lang.Thread.run(Thread.java:745)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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