From 98ce594ac8aee224d267e5a4a8d5e60fa5bc8935 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Wed, 25 Feb 2015 08:45:38 +0100 Subject: [PATCH] [TEST] write.lock is a valid file on a cleaned index --- src/test/java/org/elasticsearch/index/store/StoreTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/elasticsearch/index/store/StoreTest.java b/src/test/java/org/elasticsearch/index/store/StoreTest.java index ce27b4f3a2e..2c1c32dc386 100644 --- a/src/test/java/org/elasticsearch/index/store/StoreTest.java +++ b/src/test/java/org/elasticsearch/index/store/StoreTest.java @@ -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) {