Skip to content
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

ADBDEV-6359: Make signal handler test more stable #108

Merged
merged 9 commits into from
Oct 8, 2024
Merged

Conversation

KnightMurloc
Copy link

@KnightMurloc KnightMurloc commented Oct 2, 2024

Make signal handler test more stable

Sometimes tests of the signal handler can fail due to a long start of
gpbackup/gprestore. This can happen due to slow storage and a cold disk cache.
In this case, the process can receive a signal even before the signal handler
is initialized.

This patch adds waiting for the first line in stdout before starting the timer
to sending a signal.

Sometimes tests of the signal handler can fail due to a long start of
gpbackup/gprestore. This can happen due to slow storage and a cold disk cache.
In this case, the process can receive a signal even before the signal handler is
initialized.

This patch adds waiting for the first line in stdout before starting the timer
before sending a signal.
@KnightMurloc KnightMurloc marked this pull request as ready for review October 2, 2024 10:10
end_to_end/signal_handler_test.go Outdated Show resolved Hide resolved
end_to_end/signal_handler_test.go Outdated Show resolved Hide resolved
Copy link

@dkovalev1 dkovalev1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO 225 lines is too much for just waiting a line from process's stdout.

dkovalev1
dkovalev1 previously approved these changes Oct 7, 2024
@Stolb27 Stolb27 enabled auto-merge (squash) October 8, 2024 10:18
@Stolb27 Stolb27 merged commit 7087e49 into master Oct 8, 2024
2 checks passed
@Stolb27 Stolb27 deleted the ADBDEV-6359 branch October 8, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants