Merge pull request #13609 from mikemccand/iw_fne_init

Fix InternalEngineTests.testTranslogReplayWithFailure to expect AssertionError as well
This commit is contained in:
Michael McCandless 2015-09-16 04:49:11 -04:00
commit 69199ffb6f

View File

@ -1728,7 +1728,9 @@ public class InternalEngineTests extends ESTestCase {
engine = createEngine(store, primaryTranslogDir);
started = true;
break;
} catch (EngineCreationFailureException ex) {
} catch (EngineCreationFailureException | AssertionError ex) {
// IndexWriter can throw AssertionError on init (if asserts are enabled) if we throw FNFE/NSFE when it asserts that all
// referenced files in the current commit point do exist
}
}