-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Segfault in warnOfExpensiveReadOnlyTxnRequest
due to process pause
#14891
Labels
Comments
The root cause is clear now. When the range request fails for whatever reason (e.g timeout), then the ResponseRange is not set, accordingly nil. Eventually it causes nil pointer panic at util.go#L143. The main branch has this issue as well. Will deliver a PR this this tomorrow. |
ahrtr
added a commit
to ahrtr/etcd
that referenced
this issue
Dec 5, 2022
FYI. etcd-io#14891 (comment) Signed-off-by: Benjamin Wang <wachao@vmware.com>
ahrtr
added a commit
to ahrtr/etcd
that referenced
this issue
Dec 5, 2022
FYI. etcd-io#14891 (comment) Signed-off-by: Benjamin Wang <wachao@vmware.com>
ahrtr
added a commit
to ahrtr/etcd
that referenced
this issue
Dec 6, 2022
FYI. etcd-io#14891 (comment) Signed-off-by: Benjamin Wang <wachao@vmware.com>
ahrtr
added a commit
to ahrtr/etcd
that referenced
this issue
Dec 6, 2022
FYI. etcd-io#14891 (comment) Signed-off-by: Benjamin Wang <wachao@vmware.com>
ahrtr
added a commit
to ahrtr/etcd
that referenced
this issue
Dec 6, 2022
FYI. etcd-io#14891 (comment) Signed-off-by: Benjamin Wang <wachao@vmware.com>
This was referenced Dec 6, 2022
The fix to this issue will be included in etcd v3.5.7 and v3.4.23. Thanks @aphyr for raising this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
In Jepsen tests of etcd 3.5.6, process pauses can occasionally induce etcd nodes to segfault, logging
What did you expect to happen?
Processes probably shouldn't segfault when things get slow.
How can we reproduce it (as minimally and precisely as possible)?
With jepsen-etcd 8a76f41ad77a5badcfb2b06734374849210c4d23, run
Anything else we need to know?
No response
Etcd version (please run commands below)
Etcd configuration (command line flags or environment variables)
Etcd debug information (please run commands blow, feel free to obfuscate the IP address or FQDN in the output)
$ etcdctl --endpoints= endpoint status -w table
root@n1:/opt/etcd# ./etcdctl --endpoints=n1:2379 endpoint status -w table
+----------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
| ENDPOINT | ID | VERSION | DB SIZE | IS LEADER | IS LEARNER | RAFT TERM | RAFT INDEX | RAFT APPLIED INDEX | ERRORS |
+----------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
| n1:2379 | afa39e55dee6dc2e | 3.5.5 | 4.3 MB | true | false | 4 | 56100 | 56100 | |
+----------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
The text was updated successfully, but these errors were encountered: