-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 bug in SP* transactions #2220
Conversation
Review status: 0 of 2 files reviewed at latest revision, 3 unresolved discussions. contrib/integration/upsertDelete/main.go, line 1 at r1 (raw file):
Tested manually with this program, implementation of jepsen delete test. Will refactor a bit and add to integration test later. Don't see this file. posting/list.go, line 438 at r1 (raw file):
Say there are two parallel transactions one sp* and other which adds uid both did mutate, then if we were doing sp* irrespective of which transaction was committed. posting/list.go, line 540 at r1 (raw file):
Need to ignore sp* if it was committed after the read transaction had started. Comments from Reviewable |
Review status: 0 of 2 files reviewed at latest revision, 6 unresolved discussions. contrib/integration/upsertDelete/main.go, line 1 at r1 (raw file): Previously, janardhan1993 (Janardhan Reddy) wrote…
Add a TODO to make this as a test and not a main program. posting/list.go, line 438 at r1 (raw file): Previously, janardhan1993 (Janardhan Reddy) wrote…
Yeah, I saw this earlier and thought it to be a bug but didn't get around to talking to you about it. posting/list.go, line 535 at r1 (raw file):
What is strange is that posting/list.go, line 538 at r1 (raw file):
Is this comment still valid? I don't understand what it means. posting/list.go, line 539 at r1 (raw file):
I don't think anything can get committed with timestamp = readTs. Comments from Reviewable |
Review status: 0 of 2 files reviewed at latest revision, 6 unresolved discussions. posting/list.go, line 438 at r1 (raw file): Previously, pawanrawal (Pawan Rawal) wrote…
Done. posting/list.go, line 535 at r1 (raw file): Previously, pawanrawal (Pawan Rawal) wrote…
We should consider sp* if read is happening as part of same transaction which did sp*, in this case we would consider everything below that as deleted. posting/list.go, line 538 at r1 (raw file): Previously, pawanrawal (Pawan Rawal) wrote…
In other cases we updated the committs in posting using atomic variable, but we can't do that in case of sp* because sometimes we have read lock we can't fix the posting(delelte everything and make it empty) posting/list.go, line 539 at r1 (raw file): Previously, pawanrawal (Pawan Rawal) wrote…
Yeah, will update comment contrib/integration/upsertDelete/main.go, line 1 at r1 (raw file): Previously, pawanrawal (Pawan Rawal) wrote…
Converted to Test Comments from Reviewable |
This change is