Uploaded image for project: 'Chukwa (retired)'
  1. Chukwa (retired)
  2. CHUKWA-574

Multiple metrics emite at the same time causes logger to print corrupted metrics

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.5.0
    • Input Tools
    • None
    • Java 6, Mac OS X 10.6

    Description

      Log4JMetricsContext only has synchronized locks to initialize the logger. When they are multiple threads trying to emite metrics, there is a slight possibility that the output of multiple metrics written as one log entry. Synchronized locks should apply for the whole emiteRecord method.

      Attachments

        1. CHUKWA-574.patch
          3 kB
          Eric Yang

        Activity

          People

            eyang Eric Yang
            eyang Eric Yang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: