[TEST] don't copy write locks or extraFS files

This commit is contained in:
Simon Willnauer 2015-09-29 17:01:46 +02:00
parent 464d48cda6
commit bdc21078ca
1 changed files with 3 additions and 0 deletions

View File

@ -875,6 +875,9 @@ public class IndexShardTests extends ESSingleNodeTestCase {
try {
Lucene.cleanLuceneIndex(targetStore.directory());
for (String file : sourceStore.directory().listAll()) {
if (file.equals("write.lock") || file.startsWith("extra")) {
continue;
}
targetStore.directory().copyFrom(sourceStore.directory(), file, file, IOContext.DEFAULT);
}
} catch (Exception ex) {