zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phunt <...@git.apache.org>
Subject [GitHub] zookeeper issue #525: [ZOOKEEPER-3009] Potential NPE in NIOServerCnxnFactory
Date Mon, 21 May 2018 18:06:01 GMT
Github user phunt commented on the issue:

    These are useful fixes. However one of the burdens of recommending such a fix is to also
prove that the fix really addresses the issue, rather than just moving the problem somewhere
else. In particular it would be good if the description of this fix (and any such fix) included
details on whether all of the callers to addCnxn handle the new error handling code properly.
In this case throwing the IOException in addCnxn. "some of their callers have !=null check
but some do not have" One of the things any committer will need to do is also verify, and
having this thought out ahead of time will help.
    Another thing - are the null checks in the caller code still necessary? Should they be
removed? If yes any such patch should include changes there as well.


View raw message