-
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
[3.5] fix revision loss issue caused by compaction - 17780 #17865
Conversation
Signed-off-by: Wei Fu <[email protected]>
Signed-off-by: Wei Fu <[email protected]> (cherry picked from commit 7173391) Signed-off-by: Wei Fu <[email protected]>
Signed-off-by: Wei Fu <[email protected]> (cherry picked from commit 9ea2349) Signed-off-by: Wei Fu <[email protected]>
Signed-off-by: Wei Fu <[email protected]>
// NOTE: The proc panics and exit code is 2. It's impossible to restart | ||
// that etcd proc because last exit code is 2 and Restart() refuses to | ||
// start new one. Using IsRunning() function is to cleanup status. | ||
require.False(t, clus.Procs[targetIdx].IsRunning()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Side note:
// The proc panics and exit code is 2. It's impossible to restart
// that etcd proc because last exit code is 2 and Restart() refuses to
// start new one. Using IsRunning() function is to cleanup status.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we might be missing some improvements to expect
on release-3.5 branch. As a testing library change, we could consider backporting them avoid need for branch specific test code code causing branches to diverge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to make the test as consistent as possible. @fuweid can you please raise a followup to track it? thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed #17869
Backport:
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.