[jira] [Commented] (ZOOKEEPER-2210) clock_gettime is not available in os x

2015-06-22 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14595750#comment-14595750
 ] 

Hudson commented on ZOOKEEPER-2210:
---

SUCCESS: Integrated in ZooKeeper-trunk #2734 (See 
[https://builds.apache.org/job/ZooKeeper-trunk/2734/])
ZOOKEEPER-2210: clock_gettime is not available in OS X
(Michi Mutsuzaki via rgs) (rgs: 
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVNview=revrev=1686767)
* /zookeeper/trunk/CHANGES.txt
* /zookeeper/trunk/src/c/src/zookeeper.c


 clock_gettime is not available in os x
 --

 Key: ZOOKEEPER-2210
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2210
 Project: ZooKeeper
  Issue Type: Bug
  Components: c client
Reporter: Michi Mutsuzaki
Assignee: Michi Mutsuzaki
 Fix For: 3.5.1, 3.6.0

 Attachments: ZOOKEEPER-2210.patch, ZOOKEEPER-2210.patch


 {noformat}
 src/zookeeper.c:286:9: warning: implicit declaration of function 
 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
   ret = clock_gettime(CLOCK_MONOTONIC, ts);
 ^
 src/zookeeper.c:286:23: error: use of undeclared identifier 'CLOCK_MONOTONIC'
   ret = clock_gettime(CLOCK_MONOTONIC, ts);
 {noformat}



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


[jira] [Commented] (ZOOKEEPER-2210) clock_gettime is not available in os x

2015-06-21 Thread Chris Nauroth (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14595160#comment-14595160
 ] 

Chris Nauroth commented on ZOOKEEPER-2210:
--

+1 (non-binding).  I retested {{cli_mt}} with the latest patch.  [~michim], 
thank you for the patch, and thank you for addressing the feedback.

 clock_gettime is not available in os x
 --

 Key: ZOOKEEPER-2210
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2210
 Project: ZooKeeper
  Issue Type: Bug
  Components: c client
Reporter: Michi Mutsuzaki
Assignee: Michi Mutsuzaki
 Fix For: 3.5.1, 3.6.0

 Attachments: ZOOKEEPER-2210.patch, ZOOKEEPER-2210.patch


 {noformat}
 src/zookeeper.c:286:9: warning: implicit declaration of function 
 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
   ret = clock_gettime(CLOCK_MONOTONIC, ts);
 ^
 src/zookeeper.c:286:23: error: use of undeclared identifier 'CLOCK_MONOTONIC'
   ret = clock_gettime(CLOCK_MONOTONIC, ts);
 {noformat}



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


[jira] [Commented] (ZOOKEEPER-2210) clock_gettime is not available in os x

2015-06-20 Thread Michi Mutsuzaki (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14594766#comment-14594766
 ] 

Michi Mutsuzaki commented on ZOOKEEPER-2210:


Thank you for the review Chris and Raul. I'll update the patch to address 
Chris' comments.

 clock_gettime is not available in os x
 --

 Key: ZOOKEEPER-2210
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2210
 Project: ZooKeeper
  Issue Type: Bug
  Components: c client
Reporter: Michi Mutsuzaki
Assignee: Michi Mutsuzaki
 Fix For: 3.5.1, 3.6.0

 Attachments: ZOOKEEPER-2210.patch


 {noformat}
 src/zookeeper.c:286:9: warning: implicit declaration of function 
 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
   ret = clock_gettime(CLOCK_MONOTONIC, ts);
 ^
 src/zookeeper.c:286:23: error: use of undeclared identifier 'CLOCK_MONOTONIC'
   ret = clock_gettime(CLOCK_MONOTONIC, ts);
 {noformat}



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


[jira] [Commented] (ZOOKEEPER-2210) clock_gettime is not available in os x

2015-06-20 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14594896#comment-14594896
 ] 

Hadoop QA commented on ZOOKEEPER-2210:
--

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

+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/2774//testReport/
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/2774//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Console output: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/2774//console

This message is automatically generated.

 clock_gettime is not available in os x
 --

 Key: ZOOKEEPER-2210
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2210
 Project: ZooKeeper
  Issue Type: Bug
  Components: c client
Reporter: Michi Mutsuzaki
Assignee: Michi Mutsuzaki
 Fix For: 3.5.1, 3.6.0

 Attachments: ZOOKEEPER-2210.patch, ZOOKEEPER-2210.patch


 {noformat}
 src/zookeeper.c:286:9: warning: implicit declaration of function 
 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
   ret = clock_gettime(CLOCK_MONOTONIC, ts);
 ^
 src/zookeeper.c:286:23: error: use of undeclared identifier 'CLOCK_MONOTONIC'
   ret = clock_gettime(CLOCK_MONOTONIC, ts);
 {noformat}



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


[jira] [Commented] (ZOOKEEPER-2210) clock_gettime is not available in os x

2015-06-18 Thread Raul Gutierrez Segales (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14592265#comment-14592265
 ] 

Raul Gutierrez Segales commented on ZOOKEEPER-2210:
---

[~michim]: any comments on Chris' comments? Thanks!

 clock_gettime is not available in os x
 --

 Key: ZOOKEEPER-2210
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2210
 Project: ZooKeeper
  Issue Type: Bug
  Components: c client
Reporter: Michi Mutsuzaki
Assignee: Michi Mutsuzaki
 Fix For: 3.5.1, 3.6.0

 Attachments: ZOOKEEPER-2210.patch


 {noformat}
 src/zookeeper.c:286:9: warning: implicit declaration of function 
 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
   ret = clock_gettime(CLOCK_MONOTONIC, ts);
 ^
 src/zookeeper.c:286:23: error: use of undeclared identifier 'CLOCK_MONOTONIC'
   ret = clock_gettime(CLOCK_MONOTONIC, ts);
 {noformat}



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


[jira] [Commented] (ZOOKEEPER-2210) clock_gettime is not available in os x

2015-06-13 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14584473#comment-14584473
 ] 

Hadoop QA commented on ZOOKEEPER-2210:
--

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

+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/2768//testReport/
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/2768//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Console output: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-Build/2768//console

This message is automatically generated.

 clock_gettime is not available in os x
 --

 Key: ZOOKEEPER-2210
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2210
 Project: ZooKeeper
  Issue Type: Bug
  Components: c client
Reporter: Michi Mutsuzaki
Assignee: Michi Mutsuzaki
 Fix For: 3.5.1, 3.6.0

 Attachments: ZOOKEEPER-2210.patch


 {noformat}
 src/zookeeper.c:286:9: warning: implicit declaration of function 
 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
   ret = clock_gettime(CLOCK_MONOTONIC, ts);
 ^
 src/zookeeper.c:286:23: error: use of undeclared identifier 'CLOCK_MONOTONIC'
   ret = clock_gettime(CLOCK_MONOTONIC, ts);
 {noformat}



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


[jira] [Commented] (ZOOKEEPER-2210) clock_gettime is not available in os x

2015-06-13 Thread Chris Nauroth (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14584781#comment-14584781
 ] 

Chris Nauroth commented on ZOOKEEPER-2210:
--

Hi [~michim].  Thank you for the patch.  I built locally on a Mac and tested 
{{cli_mt}} manually.  It looks good overall.  I have a few comments on edge 
case error handling.

# It looks like {{host_get_clock_service}} can return an error code.  If there 
is an error returned, then it might not be valid to use the {{cclock}} in the 
next call to {{clock_get_time}}.
# Similarly, if there is an error, then I don't know if it's still OK to call 
{{mach_port_deallocate}}.


 clock_gettime is not available in os x
 --

 Key: ZOOKEEPER-2210
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2210
 Project: ZooKeeper
  Issue Type: Bug
  Components: c client
Reporter: Michi Mutsuzaki
Assignee: Michi Mutsuzaki
 Fix For: 3.5.1, 3.6.0

 Attachments: ZOOKEEPER-2210.patch


 {noformat}
 src/zookeeper.c:286:9: warning: implicit declaration of function 
 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
   ret = clock_gettime(CLOCK_MONOTONIC, ts);
 ^
 src/zookeeper.c:286:23: error: use of undeclared identifier 'CLOCK_MONOTONIC'
   ret = clock_gettime(CLOCK_MONOTONIC, ts);
 {noformat}



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


[jira] [Commented] (ZOOKEEPER-2210) clock_gettime is not available in os x

2015-06-13 Thread Raul Gutierrez Segales (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14584832#comment-14584832
 ] 

Raul Gutierrez Segales commented on ZOOKEEPER-2210:
---

+1, it does not break Linux :-) I'll merge it after Chris' comments are 
addressed. Thanks [~michim]!

 clock_gettime is not available in os x
 --

 Key: ZOOKEEPER-2210
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2210
 Project: ZooKeeper
  Issue Type: Bug
  Components: c client
Reporter: Michi Mutsuzaki
Assignee: Michi Mutsuzaki
 Fix For: 3.5.1, 3.6.0

 Attachments: ZOOKEEPER-2210.patch


 {noformat}
 src/zookeeper.c:286:9: warning: implicit declaration of function 
 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
   ret = clock_gettime(CLOCK_MONOTONIC, ts);
 ^
 src/zookeeper.c:286:23: error: use of undeclared identifier 'CLOCK_MONOTONIC'
   ret = clock_gettime(CLOCK_MONOTONIC, ts);
 {noformat}



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


[jira] [Commented] (ZOOKEEPER-2210) clock_gettime is not available in os x

2015-06-12 Thread Flavio Junqueira (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14584251#comment-14584251
 ] 

Flavio Junqueira commented on ZOOKEEPER-2210:
-

The problem is that _POSIX_MONOTONIC_CLOCK is defined but clock_gettime isn't.

 clock_gettime is not available in os x
 --

 Key: ZOOKEEPER-2210
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2210
 Project: ZooKeeper
  Issue Type: Bug
  Components: c client
Reporter: Michi Mutsuzaki
Assignee: Michi Mutsuzaki
 Fix For: 3.5.1, 3.6.0


 {noformat}
 src/zookeeper.c:286:9: warning: implicit declaration of function 
 'clock_gettime' is invalid in C99 [-Wimplicit-function-declaration]
   ret = clock_gettime(CLOCK_MONOTONIC, ts);
 ^
 src/zookeeper.c:286:23: error: use of undeclared identifier 'CLOCK_MONOTONIC'
   ret = clock_gettime(CLOCK_MONOTONIC, ts);
 {noformat}



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