[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15319110#comment-15319110
 ] 

Hadoop QA commented on ZOOKEEPER-2442:
--------------------------------------

-1 overall.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12808731/ZOOKEEPER-2442.patch
  against trunk revision 1746511.

    +1 @author.  The patch does not contain any @author tags.

    -1 tests included.  The patch doesn't appear to include any new or modified 
tests.
                        Please justify why no new tests are needed for this 
patch.
                        Also please list what manual steps were performed to 
verify this patch.

    +1 javadoc.  The javadoc tool did not generate any warning messages.

    +1 javac.  The applied patch does not increase the total number of javac 
compiler warnings.

    +1 findbugs.  The patch does not introduce any new Findbugs (version 2.0.3) 
warnings.

    +1 release audit.  The applied patch does not increase the total number of 
release audit warnings.

    +1 core tests.  The patch passed core unit tests.

    +1 contrib tests.  The patch passed contrib unit tests.

Test results: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/3182//testReport/
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/3182//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Console output: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/3182//console

This message is automatically generated.

> Socket leak in QuorumCnxManager connectOne
> ------------------------------------------
>
>                 Key: ZOOKEEPER-2442
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2442
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: quorum, server
>    Affects Versions: 3.5.1
>            Reporter: Michael Han
>            Assignee: Michael Han
>         Attachments: ZOOKEEPER-2442.patch
>
>
> The function connectOne() in QuorumCnxManager.java sometimes fails to release 
> a socket allocated by Socket():
> {code}
>  try {
>                 if (LOG.isDebugEnabled()) {
>                     LOG.debug("Opening channel to server " + sid);
>                 }
>                 Socket sock = new Socket();
>                 setSockOpts(sock);
>                 sock.connect(self.getView().get(sid).electionAddr, cnxTO);
>                 if (LOG.isDebugEnabled()) {
>                     LOG.debug("Connected to server " + sid);
>                 }
>                 initiateConnection(sock, sid);
>             } catch (UnresolvedAddressException e) {
>                 // Sun doesn't include the address that causes this
>                 // exception to be thrown, also UAE cannot be wrapped cleanly
>                 // so we log the exception in order to capture this critical
>                 // detail.
>                 LOG.warn("Cannot open channel to " + sid
>                         + " at election address " + electionAddr, e);
>                 throw e;
>             } catch (IOException e) {
>                 LOG.warn("Cannot open channel to " + sid
>                         + " at election address " + electionAddr,
>                         e);
>             }
> {code}
> Another place in Listener.run() where the client socket is not explicitly 
> closed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to