GitHub user stepio opened a pull request: https://github.com/apache/kafka/pull/1210
MINOR: fix incorrect exception message While playing with client got the next exception: ```java java.lang.IllegalArgumentException: Invalid partition given with record: 1 is not in the range [0...1]. ``` It's obviously incorrect, so I've fixed it. You can merge this pull request into a Git repository by running: $ git pull https://github.com/stepio/kafka trunk Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/1210.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 #1210 ---- commit c9f5f91be4389c58cbafb0d1403e901afcc57dd7 Author: Igor Stepanov <igor.stepa...@keystonett.com> Date: 2016-04-09T06:33:54Z MINOR: fix validation for the manually provided partition number, incorrect exception message commit c935890274246bf90848e0a8eba7dc4ae1a81035 Author: Igor Stepanov <igor.stepa...@keystonett.com> Date: 2016-04-09T07:05:30Z MINOR: slight improvement for the exception message generating ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---