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

Halting because log truncation is not allowed and suspicious logging

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.0.0, 0.9.0.1, 0.10.0.0
    • Fix Version/s: 0.10.1.0
    • Component/s: core
    • Labels:
      None

      Description

      When follower wants to truncate partition and it is not allowed it prints the following message:

      [2016-07-27 14:07:37,617] FATAL [ReplicaFetcherThread-0-19], Halting because log truncation is not allowed for topic rt3.fol--yabs-rt--bs-hit-log, Current leader 19's latest offset 50260815 is less
       than replica 2's latest offset 50260816 (kafka.server.ReplicaFetcherThread)
      

      It is difficult to understand which partition is it.
      I suggest to log here partition instead of topic. For example:

      [2016-07-27 14:07:37,617] FATAL [ReplicaFetcherThread-0-19], Halting because log truncation is not allowed for partition [rt3.fol--yabs-rt--bs-hit-log,0], Current leader 19's latest offset 50260815 is less
       than replica 2's latest offset 50260816 (kafka.server.ReplicaFetcherThread)
      

        Attachments

        1. KAFKA-3997.patch
          1 kB
          Alexey Ozeritskiy

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                aozeritsky Alexey Ozeritskiy
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: