com.carrotsearch.randomizedtesting.ResourceDisposalError

Resource in scope SUITE failed to close. Resource was registered from thread Thread[id=1742, name=coreLoadExecutor-787-thread-1, state=RUNNABLE, group=TGRP-RecoveryZkTest], registration stack trace below.

Samebug tips1

Check your pattern declaration or check your assert declaration.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web7

  • Resource in scope SUITE failed to close. Resource was registered from thread Thread[id=1742, name=coreLoadExecutor-787-thread-1, state=RUNNABLE, group=TGRP-RecoveryZkTest], registration stack trace below.
  • Resource in scope SUITE failed to close. Resource was registered from thread Thread[id=16644, name=coreLoadExecutor-7996-thread-1-processing-n:127.0.0.1:60067_bjv%2Fff, state=RUNNABLE, group=TGRP-TestDynamicLoading], registration stack trace below.
  • Resource in scope SUITE failed to close. Resource was registered from thread Thread[id=16644, name=coreLoadExecutor-7996-thread-1-processing-n:127.0.0.1:60067_bjv%2Fff, state=RUNNABLE, group=TGRP-TestDynamicLoading], registration stack trace below.
  • Stack trace

    • com.carrotsearch.randomizedtesting.ResourceDisposalError: Resource in scope SUITE failed to close. Resource was registered from thread Thread[id=1742, name=coreLoadExecutor-787-thread-1, state=RUNNABLE, group=TGRP-RecoveryZkTest], registration stack trace below. at java.lang.Thread.getStackTrace(Thread.java:1479) at com.carrotsearch.randomizedtesting.RandomizedContext.closeAtEnd(RandomizedContext.java:150) at org.apache.lucene.util.LuceneTestCase.closeAfterSuite(LuceneTestCase.java:520) at org.apache.lucene.util.LuceneTestCase.wrapDirectory(LuceneTestCase.java:986) at org.apache.lucene.util.LuceneTestCase.newDirectory(LuceneTestCase.java:878) at org.apache.lucene.util.LuceneTestCase.newDirectory(LuceneTestCase.java:870) at org.apache.solr.core.MockDirectoryFactory.create(MockDirectoryFactory.java:33) at org.apache.solr.core.CachingDirectoryFactory.get(CachingDirectoryFactory.java:266) at org.apache.solr.core.CachingDirectoryFactory.get(CachingDirectoryFactory.java:222) at org.apache.solr.core.SolrCore.getNewIndexDir(SolrCore.java:244) at org.apache.solr.core.SolrCore.initIndex(SolrCore.java:458) at org.apache.solr.core.SolrCore.<init>(SolrCore.java:619) at org.apache.solr.core.CoreContainer.createFromZk(CoreContainer.java:874) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:957) at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:580) at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:575) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.AssertionError: Directory not closed: MockDirWrapper(org.apache.lucene.store.RAMDirectory@38005c lockFactory=org.apache.lucene.store.NativeFSLockFactory@ff7ecd) at org.junit.Assert.fail(Assert.java:93) at org.apache.lucene.util.CloseableDirectory.close(CloseableDirectory.java:47) at com.carrotsearch.randomizedtesting.RandomizedRunner$2$1.apply(RandomizedRunner.java:602) at com.carrotsearch.randomizedtesting.RandomizedRunner$2$1.apply(RandomizedRunner.java:599) at com.carrotsearch.randomizedtesting.RandomizedContext.closeResources(RandomizedContext.java:167) at com.carrotsearch.randomizedtesting.RandomizedRunner$2.afterAlways(RandomizedRunner.java:615) at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:43) at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:358) ... 1 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    2 times, 1 week ago
    Once, 2 weeks ago
    8 times, 2 months ago
    2 times, 2 months ago
    2 times, 3 months ago
    98 more bugmates