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

Log.truncateTo() may need to trucate immutable log segment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.8.0
    • None
    • core

    Description

      In makeFollower, we need to first truncate the local log to high watermark. It's possible that we need to truncate into segments before the last one. The problem is that all segments except the last one are immutable. So the truncation will fail which prevents the replica fetcher from being started.

      One solution is to reopen the segment as mutable during truncation, if it's not mutable already.

      Attachments

        1. KAFKA-551.patch
          24 kB
          Jay Kreps

        Activity

          People

            jkreps Jay Kreps
            junrao Jun Rao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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