forked from dgraph-io/dgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split membership sync endpoints and remove PurgeTs endpoint (dgraph-i…
…o#2773) - Now that Zero followers cannot send proposals to leader, Alphas must send their membership updates to the Zero leader. - The membership updates can be received from any Zero server, leader or follower. - So, this PR splits the job of sending and receiving updates into two different endpoints: StreamMembership and UpdateMembership. - Purge Timestamps are now calculated using the Snapshot timestamp of the group. This is simpler, easier to predict and makes this system run like clockwork. That is, a snapshot calculation in Alpha leader would cause all Alpha followers to get that snapshot, which would then cause Zero to purge the timestamps below that snapshot ts (assuming other groups have caught up). - This removes the need for Zero to query all Alpha leaders, via PurgeTs endpoint. That is now removed. - Removed a lot of error variables, switching them with explanatory errors about what is going on in the system, making things easier to debug. Commits: * Working membership endpoint split. * Removed PurgeTs endpoint. Passing snapshot ts during membership update, so Zero can use that information to purge Oracle. * Block on Tablet call until we find a Zero leader. * More debugging via traces. * Simplify connToZeroLeader. Try to not add new bugs. * Update blockade test with restart option. * Self Reviews.
- Loading branch information
1 parent
8d61a76
commit efca1f0
Showing
12 changed files
with
888 additions
and
697 deletions.
There are no files selected for viewing
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
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
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
Oops, something went wrong.