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

Log cleaner should have an option to ignore messages without keys

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 0.9.0.0
    • Component/s: None
    • Labels:
      None

      Description

      Right now, there is a strict requirement that compacted topics contain only messages with keys. This makes sense, but the issue with a hard requirement is that if it fails the cleaner quits. We should probably allow ignoring these messages (with a warning). Alternatively, we can catch this scenario (instead of the hard requirement) and just skip compaction for that partition.

      This came up because I saw an invalid message (compressed and without a key) in the offsets topic which broke both log compaction and the offset load process. I filed KAFKA-1580 to prevent that from happening in the first place but KAFKA-1580 is only for internal topics. In the general case (compacted non-internal topics) we would not want the cleaners to exit permanently due to an invalid (key-less) message in one of the partitions since that would prevent compaction for other partitions as well.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                omkreddy Manikumar
                Reporter:
                jjkoshy Joel Jacob Koshy
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: