You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Guozhang Wang (JIRA)" <ji...@apache.org> on 2013/10/03 00:41:42 UTC
[jira] [Updated] (KAFKA-1071) The random partition selected in
DefaultEventHandler is not random across producer instances
[ https://issues.apache.org/jira/browse/KAFKA-1071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guozhang Wang updated KAFKA-1071:
---------------------------------
Attachment: KAFKA-1071.v1.patch
Use random int as init value.
> 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
>
>
> 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)