mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
[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() {
|
final File[] files = file.listFiles(new FileFilter() {
|
||||||
@Override
|
@Override
|
||||||
public boolean accept(File pathname) {
|
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) {
|
if (files.length > 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user