-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
etcdctl elect results in deadlock: won election never reported to winner, if key is a prefix of existing key #6278
Comments
@glycerine The prefix conflict bit should be improved. For the query warning issue, are you running etcd on HDD? It seems that the fsync takes more than 10ms. We probably will make the warning time longer to 100ms or so. At least, etcd should not spam warning on normal HDD. |
/cc @heyitsanthony |
The client code is watching on |
I'm running on SSD; stock Apple SSD 512G. |
@glycerine Just noticed that you were running 3 members on the same osx machine. Probably there are IO or CPU contentions. It is unrelated to this bug. |
Agreed. Let's ignore that part. |
slash after the key prefix. The result was deadlock due to waiting on wrong keys. Fixes etcd-io#6278
After winning an election or obtaining a lock, we auto-append a slash after the provided key prefix. This avoids the previous deadlock due to waiting on the wrong key. Fixes etcd-io#6278
After winning an election or obtaining a lock, we auto-append a slash after the provided key prefix. This avoids the previous deadlock due to waiting on the wrong key. Fixes etcd-io#6278
After winning an election or obtaining a lock, we auto-append a slash after the provided key prefix. This avoids the previous deadlock due to waiting on the wrong key. Fixes etcd-io#6278
After winning an election or obtaining a lock, we auto-append a slash after the provided key prefix. This avoids the previous deadlock due to waiting on the wrong key. Fixes etcd-io#6278
After winning an election or obtaining a lock, we auto-append a slash after the provided key prefix. This avoids the previous deadlock due to waiting on the wrong key. Fixes etcd-io#6278
After winning an election or obtaining a lock, we auto-append a slash after the provided key prefix. This avoids the previous deadlock due to waiting on the wrong key. Fixes etcd-io#6278
After winning an election or obtaining a lock, we auto-append a slash after the provided key prefix. This avoids the previous deadlock due to waiting on the wrong key. Fixes etcd-io#6278
After winning an election or obtaining a lock, we auto-append a slash after the provided key prefix. This avoids the previous deadlock due to waiting on the wrong key. Fixes etcd-io#6278
After winning an election or obtaining a lock, we auto-append a slash after the provided key prefix. This avoids the previous deadlock due to waiting on the wrong key. Fixes etcd-io#6278
After winning an election or obtaining a lock, we auto-append a slash after the provided key prefix. This avoids the previous deadlock due to waiting on the wrong key. Fixes #6278 Conflicts: clientv3/concurrency/election.go clientv3/concurrency/mutex.go
When running test suites for a client locally I'm getting spammed by log lines such as: etcdserver: apply entries took too long [14.226771ms for 1 entries] The comments in etcd-io#6278 mention there were future plans of increasing the threshold for logging these warnings, but it hadn't been done yet.
When running test suites for a client locally I'm getting spammed by log lines such as: etcdserver: apply entries took too long [14.226771ms for 1 entries] The comments in etcd-io#6278 mention there were future plans of increasing the threshold for logging these warnings, but it hadn't been done yet.
It appears that a lone candidate cannot win some elections.
The text was updated successfully, but these errors were encountered: