com.carrotsearch.randomizedtesting.ResourceDisposalError: Resource in scope SUITE failed to close. Resource was registered from thread Thread[id=1744, name=RecoveryThread, state=RUNNABLE, group=TGRP-RecoveryZkTest], registration stack trace below.

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check your pattern declaration or check your assert declaration.


rafael

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

  • Flaky unit tests
    via GitHub by samuelgruetter
    ,
    • com.carrotsearch.randomizedtesting.ResourceDisposalError: Resource in scope SUITE failed to close. Resource was registered from thread Thread[id=1744, name=RecoveryThread, 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.handler.SnapPuller.fetchLatestIndex(SnapPuller.java:383) at org.apache.solr.handler.ReplicationHandler.doFetch(ReplicationHandler.java:281) at org.apache.solr.cloud.RecoveryStrategy.replicate(RecoveryStrategy.java:153) at org.apache.solr.cloud.RecoveryStrategy.doRecovery(RecoveryStrategy.java:409) at org.apache.solr.cloud.RecoveryStrategy.run(RecoveryStrategy.java:223) Caused by: java.lang.AssertionError: Directory not closed: MockDirWrapper(org.apache.lucene.store.RAMDirectory@990bbc lockFactory=org.apache.lucene.store.NativeFSLockFactory@1055c47) 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) at java.lang.Thread.run(Thread.java:662)

    Users with the same issue

    Andreas Häber
    Andreas Häber8 times, last one,
    osvzs
    osvzs2 times, last one,
    Casper
    Casper2 times, last one,
    marcbouvierdav
    marcbouvierdav1 times, last one,
    rsprangemeijer
    rsprangemeijer1 times, last one,
    94 more bugmates