Repository navigation
fix: avoid write-read concurrency on cached cluster - #2884
Merged
Merged
Conversation
YanniHu1996
requested review from
armru,
fcanovai,
gbartolini,
leonardoce,
mnencia,
phisco and
sxd
as code owners
September 26, 2023 10:32
YanniHu1996
force-pushed
the
dev/cnp-4163
branch
from
September 26, 2023 10:38
ac9698a to
6e5b8b7
Compare
Contributor
|
❗ By default, the pull request is configured to backport to all release branches.
|
Contributor
Author
|
the way to fix this issue is to make a deep copy of the cluster object in store function doesn't make deep copy in load fubction as the cluster object from load function isn't been modified |
armru
force-pushed
the
dev/cnp-4163
branch
2 times, most recently
from
September 27, 2023 08:07
ed68fb7 to
24dc85a
Compare
Member
|
/test limit=local |
Contributor
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/6323144676 |
armru
force-pushed
the
dev/cnp-4163
branch
3 times, most recently
from
September 27, 2023 08:23
cfb24e0 to
a9c036a
Compare
Member
|
/test limit=local |
Contributor
|
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/6323315479 |
Signed-off-by: YanniHu1996 <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
gbartolini
force-pushed
the
dev/cnp-4163
branch
from
September 27, 2023 11:39
5f8ba05 to
3abfd08
Compare
gbartolini
approved these changes
Sep 27, 2023
armru
approved these changes
Sep 27, 2023
cnpg-bot
pushed a commit
that referenced
this pull request
Sep 27, 2023
Closes: #2863 Signed-off-by: YanniHu1996 <[email protected]> Signed-off-by: Armando Ruocco <[email protected]> Co-authored-by: Armando Ruocco <[email protected]> (cherry picked from commit f77af89)
cnpg-bot
pushed a commit
that referenced
this pull request
Sep 27, 2023
Closes: #2863 Signed-off-by: YanniHu1996 <[email protected]> Signed-off-by: Armando Ruocco <[email protected]> Co-authored-by: Armando Ruocco <[email protected]> (cherry picked from commit f77af89)
Lennart01
pushed a commit
to Lennart01/cloudnative-pg
that referenced
this pull request
Sep 30, 2023
) Closes: cloudnative-pg#2863 Signed-off-by: YanniHu1996 <[email protected]> Signed-off-by: Armando Ruocco <[email protected]> Co-authored-by: Armando Ruocco <[email protected]> Signed-off-by: Lennart Krauch <[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.
Closes: #2863
I reviewed the instance manager log attached in #2860 and identified two significant points
There are concurrent read/write on cluster object
Note that the write operation on the function reconcilePrimary occurs on the case of switchover that is mentioned by the above dicussion