Skip to content

Commit 59f9837

Browse files
Add a feature flag for reindex resilience (#138618)
This is not used yet, but several related streams of work will be hidden behind it until they are ready for production. Closes elastic/elasticsearch-team#2084
1 parent 1589ed4 commit 59f9837

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/reindex/src/main/java/org/elasticsearch/reindex/ReindexPlugin.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import org.elasticsearch.common.settings.Setting;
2020
import org.elasticsearch.common.settings.Settings;
2121
import org.elasticsearch.common.settings.SettingsFilter;
22+
import org.elasticsearch.common.util.FeatureFlag;
2223
import org.elasticsearch.features.NodeFeature;
2324
import org.elasticsearch.index.reindex.BulkByScrollTask;
2425
import org.elasticsearch.index.reindex.DeleteByQueryAction;
@@ -44,6 +45,11 @@ public class ReindexPlugin extends Plugin implements ActionPlugin {
4445

4546
public static final ActionType<ListTasksResponse> RETHROTTLE_ACTION = new ActionType<>("cluster:admin/reindex/rethrottle");
4647

48+
/**
49+
* Whether the feature flag to guard the work to make reindex more resilient while it is under development.
50+
*/
51+
static boolean REINDEX_RESILIENCE_ENABLED = new FeatureFlag("reindex_resilience").isEnabled();
52+
4753
@Override
4854
public List<ActionHandler> getActions() {
4955
return Arrays.asList(

0 commit comments

Comments
 (0)