-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Panic in leader loop when stopping autopilot #2980
Comments
@Gufran thanks for opening an issue - we must be getting multiple or un-ordered stop events so will need to revisit the assumptions around the previous fix. |
Noted by @magiconair that https://github.com/hashicorp/consul/blob/v0.8.1/consul/snapshot_endpoint.go#L103-L108 looks really suspicious because it is doing the revoke leadership actions not in concert with the main leader loop. @Gufran do you know if you had perhaps done a snapshot restore previously on the cluster where you saw this panic? |
@slackpad No snapshot was restored however we upscaled the cluster from 3 to 5 about a week ago and then upgraded from 7.1 to 8.1. |
The snapshot path should be cleaned up as well, but I got a local test to repro this. It looks like you can get into |
For the repro I was trying to test #3003 - create a 3 server node cluster using |
I can repro the panic with 0.8.1 after a
|
consul version
for both Client and ServerClient:
v0.8.1
Server:
v0.8.1
consul info
for both Client and ServerA client is not involved.
Server:
Operating system and Environment details
Description of the Issue (and unexpected/desired result)
This is same as #2896.
Leader node panics when trying to stop autopilot.
The fix in #2911 was merged into
0.8.1
release so I'm surprised to see this panic.Log Fragments or Link to gist
The text was updated successfully, but these errors were encountered: