GitHub user gprabhat90 opened a pull request:
https://github.com/apache/kafka/pull/66
validate configuration while parsing ConfigDef
In java client, configDef class's parse() function should return parsed and
validated values (if validator is present) but it does not validate the
configuration. e.g. i can create a KafkaProducer instance with a negative value
for batch.size and then it throws NullPointerException while sending which is
hard to debug.
This commits fix that
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/gprabhat90/kafka fixConfigValidation
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/66.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 #66
----
commit 71443fe330976e22113a2267e829a136d778410a
Author: prabhat <[email protected]>
Date: 2015-05-15T15:13:15Z
validate configuration while parsing ConfigDef
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---