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

Mark Miller commented on SOLR-10110:
------------------------------------

{noformat}
   [junit4]   2> 14356 ERROR (commitScheduler-18-thread-1) [    x:collection1] 
o.a.s.u.CommitTracker auto commit 
error...:org.apache.solr.common.SolrException: Error opening new searcher
   [junit4]   2>        at 
org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1994)
   [junit4]   2>        at 
org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:2114)
   [junit4]   2>        at 
org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1851)
   [junit4]   2>        at 
org.apache.solr.update.DirectUpdateHandler2.commit(DirectUpdateHandler2.java:644)
   [junit4]   2>        at 
org.apache.solr.update.CommitTracker.run(CommitTracker.java:217)
   [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 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
   [junit4]   2>        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
   [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)
   [junit4]   2> Caused by: org.apache.solr.common.SolrException: 
openNewSearcher called on closed core
   [junit4]   2>        at 
org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1981)
   [junit4]   2>        ... 11 more
{noformat}

{noformat}
   [junit4]   2> NOTE: test params are: codec=CheapBastard, 
sim=RandomSimilarity(queryNorm=true): {}, locale=bg, timezone=Asia/Kamchatka
   [junit4]   2> NOTE: Linux 4.8.0-37-generic amd64/Oracle Corporation 
1.8.0_121 (64-bit)/cpus=12,threads=1,free=217811792,total=258473984
   [junit4]   2> NOTE: All tests run in this JVM: [SoftAutoCommitTest]
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=SoftAutoCommitTest 
-Dtests.seed=6AC5A21713906536 -Dtests.slow=true -Dtests.locale=bg 
-Dtests.timezone=Asia/Kamchatka -Dtests.asserts=true -Dtests.file.encoding=UTF-8
   [junit4] ERROR   0.00s | SoftAutoCommitTest (suite) <<<
   [junit4]    > Throwable #1: java.lang.AssertionError: ObjectTracker found 1 
object(s) that were not released!!! [TransactionLog]
   [junit4]    > 
org.apache.solr.common.util.ObjectReleaseTracker$ObjectTrackerException
   [junit4]    >        at 
org.apache.solr.common.util.ObjectReleaseTracker.track(ObjectReleaseTracker.java:43)
   [junit4]    >        at 
org.apache.solr.update.TransactionLog.<init>(TransactionLog.java:188)
   [junit4]    >        at 
org.apache.solr.update.UpdateLog.newTransactionLog(UpdateLog.java:442)
   [junit4]    >        at 
org.apache.solr.update.UpdateLog.ensureLog(UpdateLog.java:1101)
   [junit4]    >        at 
org.apache.solr.update.UpdateLog.add(UpdateLog.java:528)
   [junit4]    >        at 
org.apache.solr.update.UpdateLog.add(UpdateLog.java:513)
   [junit4]    >        at 
org.apache.solr.update.DirectUpdateHandler2.doNormalUpdate(DirectUpdateHandler2.java:299)
   [junit4]    >        at 
org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:213)
   [junit4]    >        at 
org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:168)
   [junit4]    >        at 
org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:67)
   [junit4]    >        at 
org.apache.solr.update.processor.UpdateRequestProcessor.processAdd(UpdateRequestProcessor.java:48)
   [junit4]    >        at 
org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalAdd(DistributedUpdateProcessor.java:971)
   [junit4]    >        at 
org.apache.solr.update.processor.DistributedUpdateProcessor.versionAdd(DistributedUpdateProcessor.java:1184)
   [junit4]    >        at 
org.apache.solr.update.processor.DistributedUpdateProcessor.processAdd(DistributedUpdateProcessor.java:749)
   [junit4]    >        at 
org.apache.solr.update.processor.LogUpdateProcessorFactory$LogUpdateProcessor.processAdd(LogUpdateProcessorFactory.java:103)
   [junit4]    >        at 
org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:250)
   [junit4]    >        at 
org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:177)
   [junit4]    >        at 
org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:97)
   [junit4]    >        at 
org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:68)
   [junit4]    >        at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:171)
   [junit4]    >        at 
org.apache.solr.core.SolrCore.execute(SolrCore.java:2402)
   [junit4]    >        at 
org.apache.solr.servlet.DirectSolrConnection.request(DirectSolrConnection.java:124)
   [junit4]    >        at 
org.apache.solr.util.TestHarness.update(TestHarness.java:278)
   [junit4]    >        at 
org.apache.solr.util.BaseTestHarness.checkUpdateStatus(BaseTestHarness.java:281)
   [junit4]    >        at 
org.apache.solr.util.BaseTestHarness.validateUpdate(BaseTestHarness.java:251)
   [junit4]    >        at 
org.apache.solr.SolrTestCaseJ4.checkUpdateU(SolrTestCaseJ4.java:811)
   [junit4]    >        at 
org.apache.solr.SolrTestCaseJ4.assertU(SolrTestCaseJ4.java:790)
   [junit4]    >        at 
org.apache.solr.SolrTestCaseJ4.assertU(SolrTestCaseJ4.java:784)
   [junit4]    >        at 
org.apache.solr.update.SoftAutoCommitTest.testSoftAndHardCommitMaxTimeRapidAdds(SoftAutoCommitTest.java:310)
   [junit4]    >        at java.lang.Thread.run(Thread.java:745)
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([6AC5A21713906536]:0)
   [junit4]    >        at 
org.apache.solr.SolrTestCaseJ4.teardownTestCases(SolrTestCaseJ4.java:289)
   [junit4]    >        at java.lang.Thread.run(Thread.java:745)
   [junit4] Completed [1/1 (1!)] in 51.31s, 3 tests, 1 failure <<< FAILURES!
{noformat}

> SolrCore reload can miss commit hooks if the commit tracker tries to open a 
> new searcher on a closed core.
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-10110
>                 URL: https://issues.apache.org/jira/browse/SOLR-10110
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Mark Miller
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to