THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
interface ReplicaSelector extends Configurable, Closeable { /** * Select the replica to use for fetching the given partition. * This method is invoked whenever a change to the ISR of that * partition is observed. * * Note that this is only a recommendation. If the broker does * not support follower fetching, then the consumer will fetch * from the leader. */ Node select(String rackId, PartitionInfo partitionInfo); /** * Optional custom configuration */ default void configure(Map<String, ?> configs) {} /** * Optional shutdown hook */ default void close() {} } |
By default, we We will provide a simple implementation out of the box which uses the rackId provided by the clients and implements exact matching on the rackId from replicas.
...