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

chore: postgres_driver - acquire/release advisory lock when creating partitions #2784

Merged

Conversation

Ivansete-status
Copy link
Collaborator

Description

Add additional protection, in the shape of an advisory lock, when adding new partitions to the database.
This is interesting from the PoV of multiple nodes accessing the same database.

Issue

Not evidence that this PR will fix the following issue but it will help
#2783

@Ivansete-status Ivansete-status self-assigned this Jun 6, 2024
Copy link

github-actions bot commented Jun 6, 2024

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

github-actions bot commented Jun 6, 2024

You can find the image built from this PR at

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

Built from 586125d

Copy link

github-actions bot commented Jun 6, 2024

You can find the image built from this PR at

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

Built from 586125d

@Ivansete-status Ivansete-status marked this pull request as ready for review June 6, 2024 21:35
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.

LGTM! Thankss

@Ivansete-status Ivansete-status merged commit c5d19c4 into master Jun 7, 2024
13 of 15 checks passed
@Ivansete-status Ivansete-status deleted the apply-advisory-lock-when-creating-partitions branch June 7, 2024 15:54
rymnc pushed a commit that referenced this pull request Jun 20, 2024
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.

4 participants