fvaleri opened a new pull request, #24223:
URL: https://github.com/apache/kafka/pull/24223

   KIP-1279 needs a canonical key type to uniquely identify a mirror partition 
across the system. Coordinator state lookups, RPC payloads, and partition 
assignment all reference the same (mirrorName, topicId, partition) triple.
   
   This patch adds a MirrorPartition record in org.apache.kafka.server.mirror 
within the server-common module. This class will be referenced from multiple 
modules (core, metadata, mirror-coordinator) and server-common is the lowest 
common dependency that avoids circular module dependencies.
   
   The record validates the mirror name (non-empty, max 249 characters, ASCII 
alphanumeric plus ._-, rejecting "." and "..", following the same constraints 
as topic names).
   
   I'm using IllegalArgumentException everywhere, but maybe we want to create a 
custom exception like InvalidMirrorNameException for mirror name validation. 
Waiting feedback on that.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to