[TEST] don't copy write locks or extraFS files
This commit is contained in:
parent
464d48cda6
commit
bdc21078ca
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue