[TEST] Temporarily don't corrupt .del files since they are generational and we might pick the wrong one

This commit is contained in:
Simon Willnauer 2014-07-11 08:41:12 +02:00
parent 8f0a4ed390
commit 35a52cd04a
1 changed files with 3 additions and 1 deletions

View File

@ -396,7 +396,9 @@ public class CorruptedFileTest extends ElasticsearchIntegrationTest {
final File[] files = file.listFiles(new FileFilter() {
@Override
public boolean accept(File pathname) {
return pathname.isFile() && !"write.lock".equals(pathname.getName());
return pathname.isFile() && !"write.lock".equals(pathname.getName())
&& !pathname.getName().endsWith(".del"); // temporary fix - del files might be generational and we corrupt an old generation
// TODO(simonw): fix this method to select the oldest del gen if we pick a del file
}
});
if (files.length > 1) {