-
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
deflake TestTracing #15501
deflake TestTracing #15501
Conversation
Signed-off-by: Chao Chen <chaochn@amazon.com>
case <-time.After(1 * time.Second): | ||
case <-time.After(5 * time.Second): | ||
// default randomized election timeout is 1 to 2s, single node will fast-forward 900ms | ||
// change the timeout from 1 to 5 seconds to ensure de-flaking this test |
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.
The change makes sense to me. But could you please clarify what does "single node will fast-forward 900ms" mean?
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.
logger.go:130: 2023-03-16T02:01:04.478Z INFO default started as single-node; fast-forwarding election ticks {"local-member-id": "8e9e05c52164694d", "forward-ticks": 9, "forward-duration": "900ms", "election-ticks": 10, "election-timeout": "1s"}
Theoretically maximum wait time for the leader of the single node cluster to be elected should be 2s - 900ms
= 1.1s
, not including MsgVote and Response round trip.
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.
thx for the clarification.
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.
LGTM
Thanks @chaochn47
@chaochn47 Thanks! BTW, the |
Hi @fuweid Kudos to @endocrimes I was inspired from the comment #13167 (comment) |
Great to see the tool in use! |
@chaochn47 Thanks! It looks very good. |
TestTracing
has been failing 4 times in the past 2 months intest
andtest-arm
branch.default randomized election timeout is 1 to 2s, single node will fast-forward 900ms
change the timeout from 1 to 5 seconds to ensure de-flaking this test
cc @fuweid @ahrtr @serathius
https://github.com/etcd-io/etcd/actions/runs/4432753985/jobs/7777120960
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.