[TEST] write.lock is a valid file on a cleaned index

This commit is contained in:
Simon Willnauer 2015-02-25 08:45:38 +01:00
parent be0cef0c43
commit 98ce594ac8
1 changed files with 2 additions and 2 deletions

View File

@ -975,7 +975,7 @@ public class StoreTest extends ElasticsearchLuceneTestCase {
int numChecksums = 0; int numChecksums = 0;
int numNotFound = 0; int numNotFound = 0;
for (String file : strings) { for (String file : strings) {
assertTrue(firstMeta.contains(file) || Store.isChecksum(file)); assertTrue(firstMeta.contains(file) || Store.isChecksum(file) || file.equals("write.lock"));
if (Store.isChecksum(file)) { if (Store.isChecksum(file)) {
numChecksums++; numChecksums++;
} else if (secondMeta.contains(file) == false) { } else if (secondMeta.contains(file) == false) {
@ -991,7 +991,7 @@ public class StoreTest extends ElasticsearchLuceneTestCase {
int numChecksums = 0; int numChecksums = 0;
int numNotFound = 0; int numNotFound = 0;
for (String file : strings) { for (String file : strings) {
assertTrue(secondMeta.contains(file) || Store.isChecksum(file)); assertTrue(file, secondMeta.contains(file) || Store.isChecksum(file) || file.equals("write.lock"));
if (Store.isChecksum(file)) { if (Store.isChecksum(file)) {
numChecksums++; numChecksums++;
} else if (firstMeta.contains(file) == false) { } else if (firstMeta.contains(file) == false) {