Skip to content

Commit

Permalink
Strengthen translog commit with open view test
Browse files Browse the repository at this point in the history
This commit strengthens an assertion in the translog commit with open
view test.
  • Loading branch information
jasontedor committed Apr 19, 2017
1 parent 180d1f2 commit 20181dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2301,7 +2301,7 @@ public void testCommitWithOpenView() throws IOException {
}
// the view generation could be -1 if no commit has been performed
final long max = Math.max(1, Math.min(lastCommittedGeneration, viewGeneration));
for (long g = max; g < translog.currentFileGeneration(); g++) {
for (long g = max; g <= translog.currentFileGeneration(); g++) {
assertFileIsPresent(translog, g);
}
}
Expand Down

0 comments on commit 20181dd

Please sign in to comment.