[TEST] write.lock is a valid file on a cleaned index
This commit is contained in:
parent
be0cef0c43
commit
98ce594ac8
|
@ -975,7 +975,7 @@ public class StoreTest extends ElasticsearchLuceneTestCase {
|
|||
int numChecksums = 0;
|
||||
int numNotFound = 0;
|
||||
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)) {
|
||||
numChecksums++;
|
||||
} else if (secondMeta.contains(file) == false) {
|
||||
|
@ -991,7 +991,7 @@ public class StoreTest extends ElasticsearchLuceneTestCase {
|
|||
int numChecksums = 0;
|
||||
int numNotFound = 0;
|
||||
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)) {
|
||||
numChecksums++;
|
||||
} else if (firstMeta.contains(file) == false) {
|
||||
|
|
Loading…
Reference in New Issue