Skip to content

fix(backup,snapshot): avoid parallel actions on endpoints - #6890

Merged
mnencia merged 8 commits into
mainfrom
dev/try-lock
Feb 25, 2025
Merged

mnencia merged 8 commits into
mainfrom
dev/try-lock

Conversation

@armru

@armru armru commented Feb 20, 2025

Copy link
Copy Markdown
Member

Partially Closes #6761

@armru
armru requested a review from a team February 20, 2025 11:13
@cnpg-bot cnpg-bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.22 labels Feb 20, 2025
@github-actions

Copy link
Copy Markdown
Contributor

❗ By default, the pull request is configured to backport to all release branches.

  • To stop backporting this pr, remove the label: backport-requested ◀️ or add the label 'do not backport'
  • To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y

@armru

armru commented Feb 20, 2025

Copy link
Copy Markdown
Member Author

/test depth=push

@github-actions

Copy link
Copy Markdown
Contributor

@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label Feb 20, 2025
@armru

armru commented Feb 20, 2025

Copy link
Copy Markdown
Member Author

/test limit=local

@github-actions

Copy link
Copy Markdown
Contributor

@armru

armru commented Feb 20, 2025

Copy link
Copy Markdown
Member Author

/test limit=local

@github-actions

Copy link
Copy Markdown
Contributor

@armru

armru commented Feb 20, 2025

Copy link
Copy Markdown
Member Author

/test feature=snapshot

1 similar comment
@armru

armru commented Feb 20, 2025

Copy link
Copy Markdown
Member Author

/test feature=snapshot

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

@armru

armru commented Feb 20, 2025

Copy link
Copy Markdown
Member Author

/test limit=local

@github-actions

Copy link
Copy Markdown
Contributor

@leonardoce

Copy link
Copy Markdown
Contributor

/test limit=local feature_type=snapshot

@github-actions

Copy link
Copy Markdown
Contributor

@armru armru added this to the 1.25.1 milestone Feb 21, 2025
@armru armru changed the title fix(backup): return correct backup data on query fix(backup,snapshot): avoid parallel backup actions Feb 21, 2025
@armru armru changed the title fix(backup,snapshot): avoid parallel backup actions fix(backup,snapshot): avoid parallel backup actions on endpoints Feb 21, 2025
@armru armru changed the title fix(backup,snapshot): avoid parallel backup actions on endpoints fix(backup,snapshot): avoid parallel actions on endpoints Feb 21, 2025
@github-actions

Copy link
Copy Markdown
Contributor

@leonardoce
leonardoce force-pushed the dev/try-lock branch 3 times, most recently from 14734c4 to 7ac9b70 Compare February 21, 2025 14:37
@leonardoce

Copy link
Copy Markdown
Contributor

E2e tests were green. I'm running them again

@leonardoce

leonardoce commented Feb 21, 2025 •

Copy link
Copy Markdown
Contributor

Edit: I started the tests on the EDB fork to spare some OSS workers

https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/13460475020
https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/13460477715
https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/13460480335
https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/13460483612
https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/13460487166
https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/13460489602
https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/13460492205
https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/13460494685
https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/13460496774
https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/13460499869
https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/13460502260

@leonardoce

Copy link
Copy Markdown
Contributor

They're fine!!

@mnencia
mnencia force-pushed the dev/try-lock branch 2 times, most recently from 01fc5aa to 9f60672 Compare February 24, 2025 17:44
armru and others added 7 commits February 25, 2025 09:10
Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Marco Nenciarini <[email protected]>
Signed-off-by: Marco Nenciarini <[email protected]>
@mnencia
mnencia merged commit e2bcca8 into main Feb 25, 2025
@mnencia
mnencia deleted the dev/try-lock branch February 25, 2025 08:48
mnencia added a commit that referenced this pull request Feb 25, 2025
Multiple backup operations on the same instance were able to execute
simultaneously, potentially causing conflicts and data inconsistencies. This
patch introduces a mechanism to serialize these operations, ensuring that only
one backup can proceed at a time per instance.

Partially Closes #6761

Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Marco Nenciarini <[email protected]>
Co-authored-by: Leonardo Cecchi <[email protected]>
Co-authored-by: Marco Nenciarini <[email protected]>
(cherry picked from commit e2bcca8)
mnencia added a commit that referenced this pull request Feb 25, 2025
Multiple backup operations on the same instance were able to execute
simultaneously, potentially causing conflicts and data inconsistencies. This
patch introduces a mechanism to serialize these operations, ensuring that only
one backup can proceed at a time per instance.

Partially Closes #6761

Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Marco Nenciarini <[email protected]>
Co-authored-by: Leonardo Cecchi <[email protected]>
Co-authored-by: Marco Nenciarini <[email protected]>
(cherry picked from commit e2bcca8)
mnencia added a commit that referenced this pull request Feb 25, 2025
Multiple backup operations on the same instance were able to execute
simultaneously, potentially causing conflicts and data inconsistencies. This
patch introduces a mechanism to serialize these operations, ensuring that only
one backup can proceed at a time per instance.

Partially Closes #6761

Signed-off-by: Armando Ruocco <[email protected]>
Signed-off-by: Leonardo Cecchi <[email protected]>
Signed-off-by: Marco Nenciarini <[email protected]>
Co-authored-by: Leonardo Cecchi <[email protected]>
Co-authored-by: Marco Nenciarini <[email protected]>
(cherry picked from commit e2bcca8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-requested ◀️ This pull request should be backported to all supported releases ok to merge 👌 This PR can be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: If 3 volume snapshots fail in a row, the instance manager stops functioning (connection pool exhausted)

4 participants