Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-17241 KIP-853 follow-ups
  3. KAFKA-17033

Consider replacing the type of the ReplicaKey directory id field.

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      The current type for directoryId field in ReplicaKey is Optional<Uuid>. The field is Optional.empty when the directory id is Uuuid.ZERO_UUID. This nice because if forces KRaft to handle the empty care differently.

      The issue with this modeling is that anytime KRaft needs to serialize the directory it does an explicit conversion to the zero uuid when the option is empty.

      It is possible that adding a type like DirectoryId could improve the user experience when dealing with the directory uuid.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jsancio José Armando García Sancio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: