-
Notifications
You must be signed in to change notification settings - Fork 120
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(electric): Fix a data race that may occur when a client is sufficiently behind the latest Postgres state #1119
Closed
Conversation
This file contains 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
alco
force-pushed
the
alco/vax-1686-reserve-cached-transactions
branch
from
April 2, 2024 14:14
9dfdaa9
to
6f3cf33
Compare
alco
force-pushed
the
alco/vax-1686-reserve-cached-transactions
branch
2 times, most recently
from
April 4, 2024 11:00
498d287
to
513ece2
Compare
alco
changed the title
Alco/vax 1686 reserve cached transactions
fix(electric): Fix a data race that may occur when a client is sufficiently behind the latest Postgres state
Apr 4, 2024
alco
force-pushed
the
alco/vax-1686-reserve-cached-transactions
branch
from
April 5, 2024 13:30
513ece2
to
29a7a18
Compare
alco
force-pushed
the
alco/code-cleanups
branch
2 times, most recently
from
April 9, 2024 14:10
668518c
to
82033ba
Compare
alco
force-pushed
the
alco/vax-1686-reserve-cached-transactions
branch
from
April 9, 2024 14:13
29a7a18
to
affe5c3
Compare
Base automatically changed from
alco/code-cleanups
to
alco/vax-1686-refactor-cached-wal-ets-backed
April 10, 2024 16:15
alco
force-pushed
the
alco/vax-1686-refactor-cached-wal-ets-backed
branch
from
April 10, 2024 20:22
79c68d4
to
8af60bd
Compare
alco
force-pushed
the
alco/vax-1686-reserve-cached-transactions
branch
from
April 10, 2024 20:53
affe5c3
to
f14c8da
Compare
alco
changed the base branch from
alco/vax-1686-refactor-cached-wal-ets-backed
to
alco/origin-based-cleanup
April 10, 2024 20:53
alco
force-pushed
the
alco/origin-based-cleanup
branch
2 times, most recently
from
April 18, 2024 14:11
34a0181
to
da7d367
Compare
alco
force-pushed
the
alco/vax-1686-reserve-cached-transactions
branch
3 times, most recently
from
April 22, 2024 21:59
e72f2b4
to
ef20224
Compare
alco
force-pushed
the
alco/vax-1686-reserve-cached-transactions
branch
from
April 24, 2024 10:52
54e4bdb
to
5b9352a
Compare
alco
force-pushed
the
alco/vax-1686-reserve-cached-transactions
branch
from
April 24, 2024 11:21
5b9352a
to
4aaf792
Compare
Moved to a different branch - #1199. |
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.
This PR addresses the following edge case:
This leads to the client having an inconsistent state with the server.
The way this is addressed is by implementing a reservation system inside the cache to prevent it from dropping reserved transactions even if they are already outside of the cached WAL window size.