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

Recover when syslog-ng is restarted #2

Merged
merged 1 commit into from
Jan 12, 2024
Merged

Recover when syslog-ng is restarted #2

merged 1 commit into from
Jan 12, 2024

Conversation

smortex
Copy link
Member

@smortex smortex commented Jan 11, 2024

When syslog-ng restart, the socket on disk is removed and a new one is
created. On the riemann-tool side, this result in an EPIPE exception
being raised.

When this happen, initiate a new connection and retry the operation.

If the socket is not available at startup, we should not terminate
execution, so rework the socket initialization logic so that it happens
"when needed" rather that "on startup". Any ECONNREFUSED or EACCES
exception will be output to stderr but execution will continue.

When syslog-ng restart, the socket on disk is removed and a new one is
created.  On the riemann-tool side, this result in an EPIPE exception
being raised.

When this happen, initiate a new connection and retry the operation.

If the socket is not available at startup, we should not terminate
execution, so rework the socket initialization logic so that it happens
"when needed" rather that "on startup".  Any ECONNREFUSED or EACCES
exception will be output to stderr but execution will continue.
@smortex smortex requested review from a team as code owners January 11, 2024 17:51
@smortex smortex added the bug Something isn't working label Jan 11, 2024
This was referenced Jan 11, 2024
@smortex smortex merged commit 80c5a27 into main Jan 12, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants