-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Auditbeat] Flaky test_metricsets.Test.test_metricset_package #10633
Comments
The Auditbeat log file ( beats/libbeat/service/service.go Line 47 in 97920c9
I tried sending SIGHUP locally - the log file looks exactly the same. Question now is, why is it getting SIGHUP? In any case, maybe we should treat SIGHUP the same as SIGINT and SIGTERM so Beats shuts down gracefully? |
Forget what I said above. The return code is I can reproduce the error locally on CentOS 7. It currently happens every time for me, I'm surprised it didn't fail the PR build. What seems to be happening is that librpm installs signal traps for various UNIX signals, including SIGINT and SIGTERM (here). This overrides the existing ones in Beats. When Auditbeat is terminated (the system test sends SIGTERM), librpm cleans up its open RPM transaction and calls This has been a problem for other applications before, e.g. there is this bug report from gdb. Following that, librpm added a way to disable its signal traps altogether (here). Unfortunately, that is not yet available in the default librpm version on CentOS 7 (or 6, for that matter). What we can do (and what gdb ended up doing) is disable the signal traps after they are set. I have this patch that does this and eliminates the test failures on my local system. It's not ideal, for two reasons I think:
@tsg @andrewkroh - what do you think about this? |
Would it possible to use |
That sounds scary, but if that would be a possibility, it could also happen if you killed -9 the |
I've tried to simulate this by inserting a long |
Disable librpm signal handlers. Resolves #10633.
Disable librpm signal handlers. Resolves elastic#10633. (cherry picked from commit 6fbcbff)
Disable librpm signal handlers. Resolves elastic#10633. (cherry picked from commit 6fbcbff)
Disable librpm signal handlers. Resolves elastic#10633. (cherry picked from commit 6fbcbff)
Flaky Test
Saw this failing once in master. Artifacts are attached
test_metricsets.Test.test_metricset_package.zip
The text was updated successfully, but these errors were encountered: