-
Notifications
You must be signed in to change notification settings - Fork 854
Fix flaky autests for timeout, sigusr2, and thread_config #13012
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -39,6 +39,7 @@ | |||||
| #include <sys/time.h> | ||||||
| #include <sys/select.h> | ||||||
| #include <cerrno> | ||||||
| #include <csignal> | ||||||
|
|
||||||
| char req_buf[10000]; | ||||||
| char post_buf[1000]; | ||||||
|
|
@@ -156,6 +157,10 @@ main(int argc, char *argv[]) | |||||
| ttfb_delay = atoi(argv[3]); | ||||||
| const char *pem_file = argv[4]; | ||||||
|
|
||||||
| // Ignore SIGPIPE which can be raised when a client disconnects during | ||||||
| // the handshake delay, killing the process unexpectedly. | ||||||
| signal(SIGPIPE, SIG_IGN); | ||||||
|
|
||||||
| fprintf(stderr, "Listen on %d connect delay=%d ttfb delay=%d\n", listen_port, connect_delay, ttfb_delay); | ||||||
|
|
||||||
| int listenfd = socket(AF_INET, SOCK_STREAM, 0); | ||||||
|
|
@@ -199,8 +204,10 @@ main(int argc, char *argv[]) | |||||
| for (;;) { | ||||||
| sfd = accept(listenfd, (struct sockaddr *)nullptr, nullptr); | ||||||
| if (sfd <= 0) { | ||||||
|
||||||
| if (sfd <= 0) { | |
| if (sfd < 0) { |
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 comment says the StartBefore chain ensures TS is "fully started", but StartBefore only enforces launch ordering; it doesn’t guarantee
diags.logexists beforemvruns. With the Ready condition removed from Default,rotate_diags_logcan still race TS startup and fail ifdiags.loghasn’t been created yet. Consider moving the file-exists gating to the rotate step (e.g., via aready=condition on the StartBefore edge or by making the rotate command wait/retry) and/or adjust the comment to avoid implying readiness guarantees.