|
|
@@ -21,6 +21,7 @@ import org.apache.lucene.search.Sort;
|
|
|
import org.apache.lucene.search.TotalHits;
|
|
|
import org.apache.lucene.tests.util.LuceneTestCase;
|
|
|
import org.elasticsearch.ExceptionsHelper;
|
|
|
+import org.elasticsearch.Version;
|
|
|
import org.elasticsearch.action.ActionFuture;
|
|
|
import org.elasticsearch.action.ActionListener;
|
|
|
import org.elasticsearch.action.DocWriteResponse;
|
|
|
@@ -185,6 +186,7 @@ import static org.elasticsearch.discovery.DiscoveryModule.DISCOVERY_SEED_PROVIDE
|
|
|
import static org.elasticsearch.discovery.SettingsBasedSeedHostsProvider.DISCOVERY_SEED_HOSTS_SETTING;
|
|
|
import static org.elasticsearch.index.IndexSettings.INDEX_SOFT_DELETES_RETENTION_LEASE_PERIOD_SETTING;
|
|
|
import static org.elasticsearch.index.query.QueryBuilders.matchAllQuery;
|
|
|
+import static org.elasticsearch.node.Node.INITIAL_STATE_TIMEOUT_SETTING;
|
|
|
import static org.elasticsearch.test.XContentTestUtils.convertToMap;
|
|
|
import static org.elasticsearch.test.XContentTestUtils.differenceBetweenMapsIgnoringArrayOrder;
|
|
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
|
|
@@ -1915,6 +1917,11 @@ public abstract class ESIntegTestCase extends ESTestCase {
|
|
|
return builder.build();
|
|
|
}
|
|
|
|
|
|
+ protected static Settings applyWorkaroundForIssue92812(Settings settings) {
|
|
|
+ assertTrue("this setting hides a blocking bug, we must remove it ASAP", Version.CURRENT.onOrBefore(Version.V_8_7_0));
|
|
|
+ return Settings.builder().put(settings).put(INITIAL_STATE_TIMEOUT_SETTING.getKey(), "30s").build();
|
|
|
+ }
|
|
|
+
|
|
|
protected Path nodeConfigPath(int nodeOrdinal) {
|
|
|
return null;
|
|
|
}
|