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 remaning jepsen issues #2261
Conversation
Will remove linearizability from this PR. Kept it for testing Review status: 0 of 6 files reviewed at latest revision, all discussions resolved. dgraph/cmd/zero/raft.go, line 574 at r2 (raw file):
There was a bug here, we weren't setting leader to false when it steps down. So once a node steps down and then becomes leader again the lease was continuing from the leader was leader. (So readTs was going back) posting/list.go, line 348 at r1 (raw file):
This needn't be true always for index keys, leave conflict detection to zero shouldn't do here. Example: worker/draft.go, line 125 at r1 (raw file):
Copied linerizability implementation from zero/raft.go to check whether it fixes the issue or not. Comments from Reviewable |
224b560
to
9b1c4f2
Compare
Reviewed 1 of 5 files at r1, 1 of 2 files at r2, 3 of 4 files at r3. dgraph/cmd/zero/raft.go, line 574 at r2 (raw file): Previously, janardhan1993 (Janardhan Reddy) wrote…
good one. worker/mutation.go, line 416 at r3 (raw file):
Can we use Comments from Reviewable |
Review status: 4 of 5 files reviewed at latest revision, 4 unresolved discussions. worker/mutation.go, line 416 at r3 (raw file): Previously, pawanrawal (Pawan Rawal) wrote…
Done. Comments from Reviewable |
This change is