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

If the threadpool is terminated for any reason, the appender is unable to recover #2

Open
chrismay opened this issue Nov 29, 2021 · 0 comments

Comments

@chrismay
Copy link

We have an issue where (due to the way that TeamCity build agents launch themselves) the threadpool used by the HTTPCollector will be terminated after the application has started.

In this situation, the Log4jALA appender stops sending logs to Log Analytics and does not recover.

This can be fixed by adding a check in the collect methods that the threadpool is not terminated, and if it is, re-initialising a new threadpool. I have a patch which implements this which I am currently testing, and am happy to offer it as a PR if you think that's an appropriate fix.

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

No branches or pull requests

1 participant