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

fix: postgres_driver - better sync lock in partition creation #2809

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

Ivansete-status
Copy link
Collaborator

Description

With the previous approach it happened cases where one connection acquired the lock and other connection tried to release the same lock, causing an unrecoverable failure which made the node to end.

Issue

closes #2783

With the original approach it happened cases where one connection
acquired the lock and other connection tried to release the same lock,
causing an unrecoverable failure which made the node to end.
Copy link

This PR may contain changes to database schema of one of the drivers.

If you are introducing any changes to the schema, make sure the upgrade from the latest release to this change passes without any errors/issues.

Please make sure the label release-notes is added to make sure upgrade instructions properly highlight this change.

Copy link

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2809-rln-v2

Built from e2f3c84

Copy link

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2809-rln-v1

Built from e2f3c84

@Ivansete-status Ivansete-status marked this pull request as ready for review June 13, 2024 20:39
Copy link
Contributor

@gabrielmer gabrielmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing! Thanks so much! 😍

Copy link
Contributor

@NagyZoltanPeter NagyZoltanPeter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is truely great! Thank you!!!

@Ivansete-status Ivansete-status merged commit ab4b5b2 into master Jun 14, 2024
15 of 16 checks passed
@Ivansete-status Ivansete-status deleted the fix-sync-partition-creation branch June 14, 2024 08:07
rymnc pushed a commit that referenced this pull request Jun 20, 2024
With the original approach it happened cases where one connection
acquired the lock and other connection tried to release the same lock,
causing an unrecoverable failure which made the node to end.
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.

bug: nwaku node gets blocked because the postgres database is blocked
3 participants