You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2023/08/08 06:37:00 UTC
[jira] [Created] (CAMEL-19724) camel-core: core may lose log messages under concurrent initialization
Otavio Rodolfo Piske created CAMEL-19724:
--------------------------------------------
Summary: camel-core: core may lose log messages under concurrent initialization
Key: CAMEL-19724
URL: https://issues.apache.org/jira/browse/CAMEL-19724
Project: Camel
Issue Type: Bug
Reporter: Otavio Rodolfo Piske
When a system performs concurrent initialization of Camel, there's a good chance that it may lose messages due to [log substitution|https://www.slf4j.org/codes.html#substituteLogger] behavior.
This is more likely to happen in tests (such as camel-quartz ones - highly concurrent) than in actual production code (though, it's still possible for some applications).
Nonetheless, this can cause a lot of confusion during debugging, as some log messages may not be present on the logs. The ones likely to be dropped on the logs are the ones called during build/initialization.
I think we can do 2 things to reduce the incidence of this problem:
- Delay the logger initialization in a few key places
- Add a note in the documentation, that the logging framework should be properly initialized before running Camel in highly concurrent scenarios
--
This message was sent by Atlassian Jira
(v8.20.10#820010)