|
|
@@ -36,7 +36,8 @@ import org.elasticsearch.transport.*;
|
|
|
import org.junit.Test;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
-import java.util.*;
|
|
|
+import java.util.HashSet;
|
|
|
+import java.util.Set;
|
|
|
import java.util.concurrent.ExecutionException;
|
|
|
import java.util.concurrent.atomic.AtomicBoolean;
|
|
|
|
|
|
@@ -57,6 +58,12 @@ public class ExceptionRetryTests extends ElasticsearchIntegrationTest {
|
|
|
.build();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ protected void beforeIndexDeletion() {
|
|
|
+ // a write operation might still be in flight when the test has finished
|
|
|
+ // so we should not check the operation counter here
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Tests retry mechanism when indexing. If an exception occurs when indexing then the indexing request is tried again before finally failing.
|
|
|
* If auto generated ids are used this must not lead to duplicate ids
|