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

LogSegment.firstAppendTime not reset after truncate to

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.8.0
    • core

    Description

      Currently, we don't reset LogSegment.firstAppendTime after the segment is truncated. What can happen is that we truncate the segment to size 0 and on next append, a new log segment with the same starting offset is rolled because the time-based rolling is triggered.

      Attachments

        1. kafka-596.patch
          2 kB
          Swapnil Ghike
        2. kafka-596-v2.patch
          2 kB
          Swapnil Ghike
        3. kafka-596-v3.patch
          0.9 kB
          Swapnil Ghike

        Activity

          People

            swapnilghike Swapnil Ghike
            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