Skip to content

Commit

Permalink
Add missing indices.recovery.internal_action_retry_timeout to list of…
Browse files Browse the repository at this point in the history
… settings (elastic#83354)

The setting indices.recovery.internal_action_retry_timeout was added in 
elastic#55353 as a dynamic setting but the necessary plumbing to make it 
dynamically updateable is not here.

Relates elastic#55353
  • Loading branch information
tlrx authored Feb 1, 2022
1 parent 584fe6e commit bc23bdd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/changelog/83354.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 83354
summary: Add missing `indices.recovery.internal_action_retry_timeout` to list of settings
area: Recovery
type: bug
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ public void apply(Settings value, Settings current, Settings previous) {
RecoverySettings.INDICES_RECOVERY_ACTIVITY_TIMEOUT_SETTING,
RecoverySettings.INDICES_RECOVERY_INTERNAL_ACTION_TIMEOUT_SETTING,
RecoverySettings.INDICES_RECOVERY_INTERNAL_LONG_ACTION_TIMEOUT_SETTING,
RecoverySettings.INDICES_RECOVERY_INTERNAL_ACTION_RETRY_TIMEOUT_SETTING,
RecoverySettings.INDICES_RECOVERY_MAX_CONCURRENT_FILE_CHUNKS_SETTING,
RecoverySettings.INDICES_RECOVERY_MAX_CONCURRENT_OPERATIONS_SETTING,
RecoverySettings.INDICES_RECOVERY_USE_SNAPSHOTS_SETTING,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,10 @@ public RecoverySettings(Settings settings, ClusterSettings clusterSettings) {
INDICES_RECOVERY_INTERNAL_LONG_ACTION_TIMEOUT_SETTING,
this::setInternalActionLongTimeout
);
clusterSettings.addSettingsUpdateConsumer(
INDICES_RECOVERY_INTERNAL_ACTION_RETRY_TIMEOUT_SETTING,
this::setInternalActionRetryTimeout
);
clusterSettings.addSettingsUpdateConsumer(INDICES_RECOVERY_ACTIVITY_TIMEOUT_SETTING, this::setActivityTimeout);
clusterSettings.addSettingsUpdateConsumer(INDICES_RECOVERY_USE_SNAPSHOTS_SETTING, this::setUseSnapshotsDuringRecovery);
clusterSettings.addSettingsUpdateConsumer(
Expand Down Expand Up @@ -599,6 +603,10 @@ public void setInternalActionLongTimeout(TimeValue internalActionLongTimeout) {
this.internalActionLongTimeout = internalActionLongTimeout;
}

public void setInternalActionRetryTimeout(TimeValue internalActionRetryTimeout) {
this.internalActionRetryTimeout = internalActionRetryTimeout;
}

private void setMaxBytesPerSec(ByteSizeValue maxBytesPerSec) {
this.maxBytesPerSec = maxBytesPerSec;
if (maxBytesPerSec.getBytes() <= 0) {
Expand Down

0 comments on commit bc23bdd

Please sign in to comment.