Uploaded image for project: 'Kafka Connector'
  1. Kafka Connector
  2. KAFKA-328

SLF4J usage issues

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • None
    • 1.3.0
    • Sink
    • None

    Description

      I found the following logging issues:

      1. premature toString() invocation

        LOGGER.debug(record.toString());
        

      2. string concatenation

        LOGGER.debug("key: " + keyDoc.toString());
        

      which may cause performance issues in high-load applications.

      In particular, I encountered unnecessary pressure on GC due to the premature toString() invocation.

      Attachments

        Activity

          People

            maxim.katcharov@mongodb.com Maxim Katcharov
            andrey.pustovetov@gmail.com Andrey Pustovetov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: