Skip to content

Commit

Permalink
readd check
Browse files Browse the repository at this point in the history
  • Loading branch information
ywelsch committed Oct 1, 2019
1 parent 19f3b99 commit 76066ee
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ public void testVersionMapAfterAutoIDDocument() throws IOException {
try (Engine.Searcher searcher = engine.acquireSearcher("test")) {
assertEquals(2, searcher.getIndexReader().numDocs());
}
if (operation.origin() == PRIMARY) {
assertFalse("safe access should NOT be required last indexing round was only append only", engine.isSafeAccessRequired());
}
engine.delete(new Engine.Delete(operation.type(), operation.id(), operation.uid(), primaryTerm.get()));
assertTrue("safe access should be required", engine.isSafeAccessRequired());
engine.refresh("test");
Expand Down

0 comments on commit 76066ee

Please sign in to comment.