THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Add a new partitioner interface .
- Move existing partitioner code to DefaultPartitioner .
- If Users provide partition id than it will take precedence over partitioner.class .If partition id is null than only partitioner.class partition() method called to compute partition for given Record.
- Introduce new producer config called "partitioner.class" and "partitioner.metadata" . By default "partitioner.class" points to org.apache.kafka.clients.producer.DefaultPartitioner
...