[ https://issues.apache.org/jira/browse/KAFKA-2232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14575374#comment-14575374 ]
Alexander Pakulov commented on KAFKA-2232: ------------------------------------------ [~junrao] Partitioner#partition method has next signature: ``` public int partition(String topic, Object key, byte[] keyBytes, Object value, byte[] valueBytes, Cluster cluster); ``` Do we also want to make Partitioner interface generic? Or we want serialize key and value objects MockProducer#partition method? > make MockProducer generic > ------------------------- > > Key: KAFKA-2232 > URL: https://issues.apache.org/jira/browse/KAFKA-2232 > Project: Kafka > Issue Type: Bug > Components: clients > Affects Versions: 0.8.2.1 > Reporter: Jun Rao > Labels: newbie > Fix For: 0.8.3 > > > Currently, MockProducer implements Producer<byte[], byte[]>. Instead, we > should implement MockProducer<K, V>. -- This message was sent by Atlassian JIRA (v6.3.4#6332)