[ 
https://issues.apache.org/jira/browse/KAFKA-1071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13785594#comment-13785594
 ] 

Guozhang Wang commented on KAFKA-1071:
--------------------------------------

I tested the Random implementation a bit and the results look good. One thing 
of using timestamp is that producer clients may start at roughly the same time, 
and I do not know if there is a correlation between numeric difference of seed 
values and the numeric difference between the generated values.

> The random partition selected in DefaultEventHandler is not random across 
> producer instances
> --------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-1071
>                 URL: https://issues.apache.org/jira/browse/KAFKA-1071
>             Project: Kafka
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 0.8
>            Reporter: Jun Rao
>            Assignee: Guozhang Wang
>             Fix For: 0.8
>
>         Attachments: KAFKA-1071.v1.patch, KAFKA-1071.v2.patch
>
>
> In DefaultEventHandler, partitionCounter is initialized to 0. If multiple 
> producers start at about the same time, they likely will always select the 
> same partition.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to