Strengthen translog commit with open view test

This commit strengthens an assertion in the translog commit with open
view test.
This commit is contained in:
Jason Tedor 2017-04-18 23:41:55 -04:00
parent 180d1f2219
commit 20181dd0ad
1 changed files with 1 additions and 1 deletions

View File

@ -2301,7 +2301,7 @@ public class TranslogTests extends ESTestCase {
}
// 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);
}
}