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.