mirror of https://github.com/apache/lucene.git
SOLR-8279: Do not fail tests due to searcher tracking - just use that for waiting and use ObjectReleaseTracker for the fail since it has more detailed info.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1720631 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8043424046
commit
d74968d925
|
@ -223,7 +223,7 @@ public abstract class SolrTestCaseJ4 extends LuceneTestCase {
|
|||
if (suiteFailureMarker.wasSuccessful()) {
|
||||
// if the tests passed, make sure everything was closed / released
|
||||
if (!RandomizedContext.current().getTargetClass().isAnnotationPresent(SuppressObjectReleaseTracker.class)) {
|
||||
endTrackingSearchers(120, true);
|
||||
endTrackingSearchers(120, false);
|
||||
String orr = ObjectReleaseTracker.clearObjectTrackerAndCheckEmpty();
|
||||
assertNull(orr, orr);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue