-
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
Spool to disk causes Beats to hang if file is already locked #10653
Comments
The file must not be accessed by 2 processes at the same time. This is why the file gets locked. Otherwise we'd risk data corruption. File locking is no bug, but a safety mechanism for users to not break the spool. |
I'm surprised this was closed so dismissively without further discussion. I agree, file locking is not a bug, but having a It's not unreasonable for a user to expect I would be perfectly happy if the test just ignored the |
The way test config works it's currently not possible to ignore queue.spool.
Agreed, we should not block but quit with an error. |
test config
to hang
Is there any workaround for this? I want to run |
I use |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Hi! We're labeling this issue as |
If a current running beat has a spool file configured (for example,
queue.spool.file' => {}
) and aconfig test
is run against a configuration that specifies the same spool file, the configuration test will hang indefinitely.I think this is due to the original process having an exclusive lock on the spool file. Here is the relevant strace output:
I am using filebeat & metricbeat 6.6.0 on CentOS 7.
I was not able to test the version that fixes a similar issue in #9874.
The text was updated successfully, but these errors were encountered: