[
https://issues.apache.org/jira/browse/ZOOKEEPER-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13007662#comment-13007662
]
Hadoop QA commented on ZOOKEEPER-1020:
--------------------------------------
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12473832/ZOOKEEPER-1020.patch
against trunk revision 1082260.
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 3 new or modified tests.
+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 1.3.9)
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://hudson.apache.org/hudson/job/PreCommit-ZOOKEEPER-Build/193//testReport/
Findbugs warnings:
https://hudson.apache.org/hudson/job/PreCommit-ZOOKEEPER-Build/193//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Console output:
https://hudson.apache.org/hudson/job/PreCommit-ZOOKEEPER-Build/193//console
This message is automatically generated.
> Implement function in C client to determine which host you're currently
> connected to.
> -------------------------------------------------------------------------------------
>
> Key: ZOOKEEPER-1020
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1020
> Project: ZooKeeper
> Issue Type: New Feature
> Components: c client
> Reporter: Stephen Tyree
> Priority: Minor
> Attachments: ZOOKEEPER-1020.patch
>
>
> On occasion it might be useful to determine which host your Zookeeper client
> is currently connected to, be it for debugging purposes or otherwise. A
> possible signature for that function:
> const char* zoo_get_connected_host(zhandle_t *zh, char *buffer, size_t
> buffer_size, unsigned short *port);
> Clients could use it like below:
> char buffer[33];
> unsigned short port = 0;
> if (!zoo_get_connected_host(zh, buffer, sizeof(buffer), &port))
> return EXIT_FAILURE;
> printf("The connected host is: %s:%d\n", buffer, port);
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira