[TEST] Temporarily don't corrupt .del files since they are generational and we might pick the wrong one
This commit is contained in:
parent
8f0a4ed390
commit
35a52cd04a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue