You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Alexander Pakulov (JIRA)" <ji...@apache.org> on 2015/06/06 00:46:01 UTC

[jira] [Commented] (KAFKA-2232) make MockProducer generic

    [ 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)