Skip to content

Commit

Permalink
Remove deprecated 'reindex.remote.whitelist` setting (opensearch-proj…
Browse files Browse the repository at this point in the history
…ect#17188)

This has been replaced by `reindex.remote.allowlist`.

Signed-off-by: Andrew Ross <[email protected]>
  • Loading branch information
andrross authored Jan 29, 2025
1 parent b9900ee commit 6e81d23
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 96 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ public Collection<Object> createComponents(
@Override
public List<Setting<?>> getSettings() {
final List<Setting<?>> settings = new ArrayList<>();
settings.add(TransportReindexAction.REMOTE_CLUSTER_WHITELIST);
settings.add(TransportReindexAction.REMOTE_CLUSTER_ALLOWLIST);
settings.add(TransportReindexAction.REMOTE_REINDEX_RETRY_INITIAL_BACKOFF);
settings.add(TransportReindexAction.REMOTE_REINDEX_RETRY_MAX_COUNT);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,9 @@
import static java.util.Collections.emptyList;

public class TransportReindexAction extends HandledTransportAction<ReindexRequest, BulkByScrollResponse> {
static final Setting<List<String>> REMOTE_CLUSTER_WHITELIST = Setting.listSetting(
"reindex.remote.whitelist",
emptyList(),
Function.identity(),
Property.NodeScope,
Property.Deprecated
);
// The setting below is going to replace the above.
// To keep backwards compatibility, the old usage is remained, and it's also used as the fallback for the new usage.
public static final Setting<List<String>> REMOTE_CLUSTER_ALLOWLIST = Setting.listSetting(
"reindex.remote.allowlist",
REMOTE_CLUSTER_WHITELIST,
emptyList(),
Function.identity(),
Property.NodeScope
);
Expand Down

This file was deleted.

0 comments on commit 6e81d23

Please sign in to comment.