Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backport 1.1] Replication auto pauses on follower cluster having wait_for_active_shards true #894

Merged
merged 2 commits into from
May 29, 2023

Conversation

monusingh-1
Copy link
Collaborator

@monusingh-1 monusingh-1 commented May 26, 2023

Description

The leader index setting "wait_for_active_shards" is not copied/applied on the follower cluster. The default value of said setting is assumed at the follower cluster unless specified or changed specifically for the follower cluster.

Following is the expected behaviour in the identified scenarios relating to the "wait_for_active_shards" index setting,

  • If the wait_for_active_shards setting is set to “all” during index creation, the index replication will succeed but the said setting will not be copied to the follower cluster(Verify through the “_settings” API). If one of the follower node goes down, the replication should still continue.

  • If the wait_for_active_shards setting is set to “all” during index creation, and is later changed dynamically to any other valid value, on applying replication again, replication should not be affected and the setting value should also not change on the follower-cluster.

  • If the wait_for_active_shards setting is set to “default/any valid value”, and later changed to “all”, then the setting change should be ignored at the follower-cluster. No change in replication or the said setting's value.
    NOTE- In all the above cases, the setting “wait_for_active_shards” value should be “default” on the follower-cluster.

  • If the follower index setting "wait_for_active_shards" is set to valid value in “start-replication” API, then that should be applied to the follower cluster.

  • If the follower index setting "wait_for_active_shards" is set to valid value in “update-settings” API for the follower cluster, then that should be applied on the follower cluster.

Issues Resolved

#544

monusingh-1 and others added 2 commits May 26, 2023 13:13
…rch-project#888)

Github-Issue-544:Replication auto pauses on follower cluster having w…
(cherry picked from commit 2fba1f7)

Signed-off-by: Monu Singh <[email protected]>
Co-authored-by: Priyanka Sharma <[email protected]>
Signed-off-by: Monu Singh <[email protected]>
@monusingh-1 monusingh-1 changed the title Merge pull request #624 from priyatsh/main [backport 1.1]Merge pull request #624 from priyatsh/main May 26, 2023
@monusingh-1 monusingh-1 marked this pull request as ready for review May 26, 2023 07:48
@monusingh-1 monusingh-1 changed the title [backport 1.1]Merge pull request #624 from priyatsh/main [backport 1.1] Replication auto pauses on follower cluster having wait_for_active_shards true May 29, 2023
@ankitkala ankitkala merged commit 4534314 into opensearch-project:1.1 May 29, 2023
@monusingh-1 monusingh-1 deleted the 1.1_26_may branch November 2, 2023 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants