Apache Solr open-source search software
tests: try to prevent corrupt tlog test from failing other methods on windows
Yonik Seeleye494b8841b59
diff --git a/solr/core/src/test/org/apache/solr/search/TestRecovery.java b/solr/core/src/test/org/apache/solr/search/TestRecovery.javaindex f31879a0016..be49f76c71e 100644--- a/solr/core/src/test/org/apache/solr/search/TestRecovery.java+++ b/solr/core/src/test/org/apache/solr/search/TestRecovery.java@@ -915,6 +915,10 @@ public class TestRecovery extends SolrTestCaseJ4 {assertJQ(req("q","*:*") ,"/response/numFound==3");+ // This messes up some other tests (on windows) if we don't remove the bad log.+ // This *should* hopefully just be because the tests are too fragile and not because of real bugs - but it should be investigated further.+ deleteLogs();+} finally {DirectUpdateHandler2.commitOnClose = true;UpdateLog.testing_logReplayHook = null;