storm-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From priyank5485 <>
Subject [GitHub] storm pull request #1665: STORM-2074: fix storm-kafka-monitor NPE bug
Date Wed, 31 Aug 2016 17:32:54 GMT
Github user priyank5485 commented on a diff in the pull request:
    --- Diff: external/storm-kafka-monitor/src/main/java/org/apache/storm/kafka/monitor/
    @@ -89,6 +89,10 @@ public static void main (String args[]) {
                         printUsageAndExit(options, OPTION_ZK_SERVERS_LONG + " and " + OPTION_ZK_COMMITTED_NODE_LONG
+ " are required  with " +
    +                String zkNode = commandLine.getOptionValue(OPTION_ZK_COMMITTED_NODE_LONG);
    --- End diff --
    While adding OPTION_ZK_NODE_COMMITTED_NODE_LONG to options it is added using the method
options.addOption(String opt, String longOpt, boolean hasArg, String description) The third
argument is set to true in the call which specifies that the argument must have a value. Does
not that take care of null or empty value? Do we need to have this explicit check here?

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 or file a JIRA ticket
with INFRA.

View raw message