-
Notifications
You must be signed in to change notification settings - Fork 10.2k
integration: deflake TestMaintenanceSnapshotCancel #17235
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
Conversation
Unlike SnapshotWithVersion, the client.Snapshot doesn't wait for first response. The server could open db after we close connection or shutdown the server. We can read few bytes to ensure server opens boltdb. Signed-off-by: Wei Fu <[email protected]>
|
/retest |
|
Fixes the issue on my side. From To |
|
Hi @ahrtr , The panic happened after we close etcd server. Both client and server have closed connection. However, snapshot streaming function is still ongoing. Integration testcases don't invoke new process. Even if the server has been closed, the request handlers can still work. Not sure that it's worth to add some protection right now. |
I think it might be easy to reproduce this issue in an e2e test.
I do not get time to verify the thought, please feel free to investigate and create a test case to reproduce it. |
|
@ahrtr I think it's not scope of this pull request. I can verify it in the follow-up. does it make senses to you? |
|
OK, let's keep the issue #17223 open for now. |
Unlike SnapshotWithVersion, the client.Snapshot doesn't wait for first response. The server could open db after we close connection or shutdown the server. We can read few bytes to ensure server opens boltdb.
Closes #17223
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.