-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Election RPC service #7634
Election RPC service #7634
Commits on Apr 7, 2017
-
concurrency: expose leader revision and proclaim headers for election
Anthony Romano committedApr 7, 2017 Configuration menu - View commit details
-
Copy full SHA for a6cab69 - Browse repository at this point
Copy the full SHA a6cab69View commit details -
concurrency: return v3.GetResponse for Election.Leader()
The full information about the leader's key is necessary to safely use elections with transactions. Instead of returning only the value on Leader(), return the entire GetResposne.
Anthony Romano committedApr 7, 2017 Configuration menu - View commit details
-
Copy full SHA for 4b5bb7f - Browse repository at this point
Copy the full SHA 4b5bb7fView commit details -
concurrency: only delete on election resignation if create revision m…
…atches Addresses a case where two clients share the same lease. A client resigns but disconnects / crashes and doesn't realize it. Another client reuses the lease and gets leadership with a new key. The old client comes back and tries to resign again, revoking the new leadership of the new client.
Anthony Romano committedApr 7, 2017 Configuration menu - View commit details
-
Copy full SHA for d1ae4cd - Browse repository at this point
Copy the full SHA d1ae4cdView commit details -
concurrency: support resuming elections if leadership already held
If a client already knows it holds leadership, let it create an election object with its leadership information.
Anthony Romano committedApr 7, 2017 Configuration menu - View commit details
-
Copy full SHA for 80c1b9c - Browse repository at this point
Copy the full SHA 80c1b9cView commit details -
concurrency: don't skip leader updates in Observe()
The Get for the leader key will fetch based on the latest revision instead of the deletion revision, missing leader updates between the delete and the Get. Although it's usually safe to skip these updates since they're stale, it makes testing more difficult and in some cases the full leader update history is desirable.
Anthony Romano committedApr 7, 2017 Configuration menu - View commit details
-
Copy full SHA for 4b4f5be - Browse repository at this point
Copy the full SHA 4b4f5beView commit details -
v3rpc: force RangeEnd=nil if length is 0
gRPC will replace empty strings with nil, but for the embedded case it's possible for []byte{} to slip in and confuse the single key / >= key watch logic.
Anthony Romano committedApr 7, 2017 Configuration menu - View commit details
-
Copy full SHA for 135a407 - Browse repository at this point
Copy the full SHA 135a407View commit details -
scripts: update genproto.sh to include v3election
Anthony Romano committedApr 7, 2017 Configuration menu - View commit details
-
Copy full SHA for 9ba69ff - Browse repository at this point
Copy the full SHA 9ba69ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for dc8115a - Browse repository at this point
Copy the full SHA dc8115aView commit details -
integration: v3 election rpc tests
Anthony Romano committedApr 7, 2017 Configuration menu - View commit details
-
Copy full SHA for bf047ed - Browse repository at this point
Copy the full SHA bf047edView commit details -
Anthony Romano committed
Apr 7, 2017 Configuration menu - View commit details
-
Copy full SHA for 78422ea - Browse repository at this point
Copy the full SHA 78422eaView commit details -
etcd-runner: update election command to use new Leader() interface
Anthony Romano committedApr 7, 2017 Configuration menu - View commit details
-
Copy full SHA for 5f366db - Browse repository at this point
Copy the full SHA 5f366dbView commit details