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

ASF GitHub Bot commented on KAFKA-3333:
---------------------------------------

GitHub user Crim opened a pull request:

    https://github.com/apache/kafka/pull/1012

    [KAFKA-3333] - Add RoundRobinPartitioner

    https://issues.apache.org/jira/browse/KAFKA-3333
    
    
    The DefaultPartitioner typically distributes using the hash of the 
keybytes, and falls back to round robin if there is no key. But there is 
currently no way to do Round Robin partitioning if you have keys on your 
messages without writing your own partitioning implementation.
    
    I think it'd be helpful to have an implementation of straight Round Robin 
partitioning included with the library.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Crim/kafka KAFKA-3333

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/1012.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1012
    
----
commit 7a6781dfdfd1cbb34976a8dc37f0be72c644257b
Author: stephen powis <[email protected]>
Date:   2016-03-04T15:14:42Z

    [KAFKA-3333] - Add RoundRobinPartitioner

----


> Client Partitioner - Round Robin
> --------------------------------
>
>                 Key: KAFKA-3333
>                 URL: https://issues.apache.org/jira/browse/KAFKA-3333
>             Project: Kafka
>          Issue Type: New Feature
>          Components: clients
>            Reporter: Stephen Powis
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The 
> [DefaultPartitioner|https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/producer/internals/DefaultPartitioner.java]
>  typically distributes using the hash of the keybytes, and falls back to 
> round robin if there is no key.  But there is currently no way to do Round 
> Robin partitioning if you have keys on your messages without writing your own 
> partitioning implementation.
> I think it'd be helpful to have an implementation of straight Round Robin 
> partitioning included with the library.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to