-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
Lock based leadership #606
Merged
Merged
Commits on Dec 30, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 4178784 - Browse repository at this point
Copy the full SHA 4178784View commit details -
Migrate notifier to connection callback module
An in-progress notifications update allows injecting a callback module into `Postgrex.Notifications`. The callback can handle listeners and notifications however the application requires, and more importantly, it allows running arbitrary queries. By switching to our own notification implementation we get control over relaying messgaes to subscribers (rather than proxying them all through the connection) and keep a persistent connection for leadership elections.
Configuration menu - View commit details
-
Copy full SHA for 6433102 - Browse repository at this point
Copy the full SHA 6433102View commit details -
Configuration menu - View commit details
-
Copy full SHA for d082f21 - Browse repository at this point
Copy the full SHA d082f21View commit details -
Configuration menu - View commit details
-
Copy full SHA for 475d5c2 - Browse repository at this point
Copy the full SHA 475d5c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 64334b7 - Browse repository at this point
Copy the full SHA 64334b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e5b20d1 - Browse repository at this point
Copy the full SHA e5b20d1View commit details -
Remove circuit breaker docs, functions, and config
The last remaining circuit breaker was used in the Postgres notifier, which no longer manages its own connection. Instead, the persistent connection manages auto reconnection by itself and between the `Connection.connected?` and `Senator.leader?` callbacks, plugins or other connection sensitve code can tailor behavior.
Configuration menu - View commit details
-
Copy full SHA for 2ff5721 - Browse repository at this point
Copy the full SHA 2ff5721View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63bc324 - Browse repository at this point
Copy the full SHA 63bc324View commit details -
Configuration menu - View commit details
-
Copy full SHA for 18b0e80 - Browse repository at this point
Copy the full SHA 18b0e80View commit details -
Configuration menu - View commit details
-
Copy full SHA for a474c91 - Browse repository at this point
Copy the full SHA a474c91View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb0b0e3 - Browse repository at this point
Copy the full SHA bb0b0e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11de1e8 - Browse repository at this point
Copy the full SHA 11de1e8View commit details
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.