Kafka
  1. Kafka
  2. KAFKA-816

Reduce noise in Kafka server logs due to NotLeaderForPartitionException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: None
    • Component/s: core
    • Labels:

      Description

      NotLeaderForPartitionException is logged at the ERROR level with a full stack trace. But really this is just an informational message on the server when a client with stale metadata sends requests to the wrong leader for a partition. This floods the logs either if there are many clients or few clients sending many topics (migration tool or mirror maker). This should probably be logged at WARN and without the stack trace

      1. KAFKA-816.jpg
        62 kB
        BalajiSeshadri
      2. kafka-816.patch
        4 kB
        Neha Narkhede
      3. kafka-816-v2.patch
        4 kB
        Neha Narkhede

        Issue Links

          Activity

          Neha Narkhede created issue -
          Neha Narkhede made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          Neha Narkhede made changes -
          Status In Progress [ 3 ] Patch Available [ 10002 ]
          Neha Narkhede made changes -
          Attachment kafka-816.patch [ 12574441 ]
          Neha Narkhede made changes -
          Attachment kafka-816-v2.patch [ 12575033 ]
          Neha Narkhede made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Neha Narkhede made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          BalajiSeshadri made changes -
          Link This issue is blocked by KAFKA-877 [ KAFKA-877 ]
          BalajiSeshadri made changes -
          Attachment KAFKA-816.jpg [ 12580654 ]

            People

            • Assignee:
              Neha Narkhede
              Reporter:
              Neha Narkhede
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development