Repository navigation
fix: avoid concurrent updates on the designed primary - #5755
Merged
leonardoce merged 1 commit intoOct 9, 2024
Merged
Conversation
Contributor
|
❗ By default, the pull request is configured to backport to all release branches.
|
leonardoce
force-pushed
the
concurrent-designed-primary
branch
from
October 8, 2024 09:27
9c030d9 to
e18f0a2
Compare
Contributor
Author
|
E2e tests are green! |
gbartolini
approved these changes
Oct 8, 2024
This patch fixes a condition where a demoted replica cluster is stuck waiting for the primary to be demoted to a designed primary, due to a concurrent update on the Cluster CR by the operator and the instance manager. The update by the instance manager is now using the update entrypoint instead of a patch, using the Kubernetes optimistic locking mechanism. Closes: cloudnative-pg#5754 Signed-off-by: Leonardo Cecchi <[email protected]> Co-authored-by: Armando Ruocco <[email protected]>
leonardoce
force-pushed
the
concurrent-designed-primary
branch
from
October 9, 2024 08:13
e18f0a2 to
7e722ee
Compare
mnencia
approved these changes
Oct 9, 2024
Contributor
Author
|
/ok-to-merge tests green |
cnpg-bot
pushed a commit
that referenced
this pull request
Oct 9, 2024
This patch fixes a condition where a demoted replica cluster is stuck waiting for the primary to be demoted to a designed primary, due to a concurrent update on the Cluster CR by the operator and the instance manager. The update by the instance manager is now using the update method instead of a patch, relying on the Kubernetes optimistic locking mechanism. Closes: #5754 Signed-off-by: Leonardo Cecchi <[email protected]> Co-authored-by: Armando Ruocco <[email protected]> (cherry picked from commit 0f82afc)
cnpg-bot
pushed a commit
that referenced
this pull request
Oct 9, 2024
This patch fixes a condition where a demoted replica cluster is stuck waiting for the primary to be demoted to a designed primary, due to a concurrent update on the Cluster CR by the operator and the instance manager. The update by the instance manager is now using the update method instead of a patch, relying on the Kubernetes optimistic locking mechanism. Closes: #5754 Signed-off-by: Leonardo Cecchi <[email protected]> Co-authored-by: Armando Ruocco <[email protected]> (cherry picked from commit 0f82afc)
bentastic27
pushed a commit
to bentastic27/cloudnative-pg
that referenced
this pull request
Oct 11, 2024
…#5755) This patch fixes a condition where a demoted replica cluster is stuck waiting for the primary to be demoted to a designed primary, due to a concurrent update on the Cluster CR by the operator and the instance manager. The update by the instance manager is now using the update method instead of a patch, relying on the Kubernetes optimistic locking mechanism. Closes: cloudnative-pg#5754 Signed-off-by: Leonardo Cecchi <[email protected]> Co-authored-by: Armando Ruocco <[email protected]> Signed-off-by: Ben Healey <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patch fixes a condition where a demoted replica cluster is stuck waiting for the primary to be demoted to a designed primary, due to a concurrent update on the Cluster CR by the operator and the instance manager.
The update by the instance manager is now using the update entrypoint instead of a patch, using the Kubernetes optimistic locking mechanism.
Closes: #5754
Release notes