[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 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) {
|
||||||
|
|
Loading…
Reference in New Issue