Github user revans2 commented on a diff in the pull request:

    https://github.com/apache/storm/pull/2083#discussion_r113841362
  
    --- Diff: storm-client/src/jvm/org/apache/storm/utils/ConfigUtils.java ---
    @@ -313,6 +315,34 @@ public static File getWorkerDirFromRoot(String 
logRoot, String id, Integer port)
             return new File((logRoot + FILE_SEPARATOR + id + FILE_SEPARATOR + 
port));
         }
     
    +    /**
    +     * Get the given config value as a String, if possible.
    +     * @param name - the config key
    +     * @param conf - the config map
    +     * @return - the config value converted to a String if found, 
otherwise null.
    +     * @throws IllegalArgumentException if conf is null
    +     * @throws NullPointerException if name is null and the conf map 
doesn't support null keys
    +     */
    +    public static String getConfigValueAsString(String name, Map<?, ?> 
conf) {
    --- End diff --
    
    If we are going to a common type for *childopts it should be a 
`List<String>` not `String`.  The reason for a list is that something with 
whitespace in it can be properly represented this breaks that.


---
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.
---

Reply via email to