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

broker deletes all file segments when cleaning up an empty log segment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.7.1
    • core
    • None

    Description

      Suppose that a log has only one log segment left and it's empty. If that segment expires and is deleted, we roll out a new segment of the same name. However, the deletion happens after the log is rolled. This will make the log directory empty, which should never happen.

      Attachments

        1. kafka-292.patch
          2 kB
          Jun Rao
        2. kafka-292_v2.patch
          2 kB
          Jun Rao

        Activity

          People

            junrao Jun Rao
            junrao Jun Rao
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: