Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19724

camel-core: core may lose log messages under concurrent initialization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0-RC2
    • 4.0.0
    • came-core
    • None
    • Unknown

    Description

      When a system performs concurrent initialization of Camel, there's a good chance that it may lose messages due to log substitution 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

      Attachments

        Activity

          People

            orpiske Otavio Rodolfo Piske
            orpiske Otavio Rodolfo Piske
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: