[GitHub] zookeeper pull request #451: ZOOKEEPER-2184: Zookeeper Client should re-reso...

2018-05-24 Thread hanm
Github user hanm commented on a diff in the pull request:

https://github.com/apache/zookeeper/pull/451#discussion_r190789369
  
--- Diff: src/java/main/org/apache/zookeeper/client/HostProvider.java ---
@@ -53,7 +54,7 @@
  * @param spinDelay
  *Milliseconds to wait if all hosts have been tried once.
  */
-public InetSocketAddress next(long spinDelay);
+public InetSocketAddress next(long spinDelay) throws 
UnknownHostException;
--- End diff --

Some questions here @anmolnar:

>> See my comment below. Now I think the API change is necessary, but I 
need to double check how it was detected previously.

Which comment? I had a hard time find it, could you please explicitly paste 
it here?

>> I started a thread on the mailing list a while ago for exactly the same 
reason. Let me update it.

Similarly I lost that email thread. Could you please describe the gist of 
the email?

I just wan to make sure we all agree that first an API change here is 
needed and second, if the API changes we need throw the right type of 
exception. 

(Also note the current comment of HostProvider interface should be updated 
if the API changes, because previous semantic of next always assume returns a 
"valid" address.).


---


ZooKeeper-trunk - Build # 38 - Failure

2018-05-24 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper-trunk/38/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 141.09 KB...]
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
1.341 sec, Thread: 3, Class: org.apache.zookeeper.test.SessionInvalidationTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
3.489 sec, Thread: 8, Class: org.apache.zookeeper.test.ServerCnxnTest
[junit] Running org.apache.zookeeper.test.SessionTest in thread 3
[junit] Running org.apache.zookeeper.test.SessionTimeoutTest in thread 8
[junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
1.845 sec, Thread: 8, Class: org.apache.zookeeper.test.SessionTimeoutTest
[junit] Running org.apache.zookeeper.test.SessionTrackerCheckTest in thread 
8
[junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.099 sec, Thread: 8, Class: org.apache.zookeeper.test.SessionTrackerCheckTest
[junit] Running org.apache.zookeeper.test.SessionUpgradeTest in thread 8
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
143.774 sec, Thread: 2, Class: org.apache.zookeeper.test.RecoveryTest
[junit] Running org.apache.zookeeper.test.StandaloneTest in thread 2
[junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
13.831 sec, Thread: 3, Class: org.apache.zookeeper.test.SessionTest
[junit] Running org.apache.zookeeper.test.StatTest in thread 3
[junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
2.65 sec, Thread: 2, Class: org.apache.zookeeper.test.StandaloneTest
[junit] Running org.apache.zookeeper.test.StaticHostProviderTest in thread 2
[junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
1.808 sec, Thread: 3, Class: org.apache.zookeeper.test.StatTest
[junit] Running org.apache.zookeeper.test.StringUtilTest in thread 3
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.075 sec, Thread: 3, Class: org.apache.zookeeper.test.StringUtilTest
[junit] Running org.apache.zookeeper.test.SyncCallTest in thread 3
[junit] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
2.266 sec, Thread: 2, Class: org.apache.zookeeper.test.StaticHostProviderTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.944 sec, Thread: 3, Class: org.apache.zookeeper.test.SyncCallTest
[junit] Running org.apache.zookeeper.test.TruncateTest in thread 2
[junit] Running org.apache.zookeeper.test.WatchEventWhenAutoResetTest in 
thread 3
[junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
24.652 sec, Thread: 8, Class: org.apache.zookeeper.test.SessionUpgradeTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
99.549 sec, Thread: 1, Class: org.apache.zookeeper.test.RestoreCommittedLogTest
[junit] Running org.apache.zookeeper.test.WatchedEventTest in thread 1
[junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.095 sec, Thread: 1, Class: org.apache.zookeeper.test.WatchedEventTest
[junit] Running org.apache.zookeeper.test.WatcherFuncTest in thread 8
[junit] Running org.apache.zookeeper.test.WatcherTest in thread 1
[junit] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
4.388 sec, Thread: 8, Class: org.apache.zookeeper.test.WatcherFuncTest
[junit] Running org.apache.zookeeper.test.X509AuthTest in thread 8
[junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.116 sec, Thread: 8, Class: org.apache.zookeeper.test.X509AuthTest
[junit] Running org.apache.zookeeper.test.ZkDatabaseCorruptionTest in 
thread 8
[junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
19.447 sec, Thread: 2, Class: org.apache.zookeeper.test.TruncateTest
[junit] Running org.apache.zookeeper.test.ZooKeeperQuotaTest in thread 2
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
1.247 sec, Thread: 2, Class: org.apache.zookeeper.test.ZooKeeperQuotaTest
[junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
22.507 sec, Thread: 3, Class: 
org.apache.zookeeper.test.WatchEventWhenAutoResetTest
[junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
20.226 sec, Thread: 8, Class: org.apache.zookeeper.test.ZkDatabaseCorruptionTest
[junit] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
31.62 sec, Thread: 1, Class: org.apache.zookeeper.test.WatcherTest
[junit] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
287.804 sec, Thread: 6, Class: org.apache.zookeeper.test.ReconfigTest
[junit] Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
607.189 sec, Thread: 7, Class: org.apache.zookeeper.test.DisconnectedWatcherTest

[GitHub] zookeeper issue #528: ZOOKEEPER-3034 Facing issues while building from sourc...

2018-05-24 Thread anmolnar
Github user anmolnar commented on the issue:

https://github.com/apache/zookeeper/pull/528
  
Using pkg-config in the latest patch.
I also removed unused method `print_completion_queue()`, because it doesn't 
compile under Ubuntu 18.04
@rgs1 Would you care to take a look?



---


Success: ZOOKEEPER- PreCommit Build #1754

2018-05-24 Thread Apache Jenkins Server
Build: https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/1754/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 84.32 MB...]
 [exec] +1 @author.  The patch does not contain any @author tags.
 [exec] 
 [exec] +1 tests included.  The patch appears to include 1 new or 
modified tests.
 [exec] 
 [exec] +1 javadoc.  The javadoc tool did not generate any warning 
messages.
 [exec] 
 [exec] +1 javac.  The applied patch does not increase the total number 
of javac compiler warnings.
 [exec] 
 [exec] +1 findbugs.  The patch does not introduce any new Findbugs 
(version 3.0.1) warnings.
 [exec] 
 [exec] +1 release audit.  The applied patch does not increase the 
total number of release audit warnings.
 [exec] 
 [exec] +1 core tests.  The patch passed core unit tests.
 [exec] 
 [exec] +1 contrib tests.  The patch passed contrib unit tests.
 [exec] 
 [exec] Test results: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/1754//testReport/
 [exec] Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/1754//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
 [exec] Console output: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/1754//console
 [exec] 
 [exec] This message is automatically generated.
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec] Adding comment to Jira.
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec] Comment with id 16489836 added to ZOOKEEPER-3034.
 [exec] Session logged out. Session was 
JSESSIONID=110CC62DA27A021C81108B1EE3DA311D.
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec] Finished build.
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec] mv: 
'/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/patchprocess'
 and 
'/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/patchprocess'
 are the same file

BUILD SUCCESSFUL
Total time: 17 minutes 12 seconds
Archiving artifacts
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Recording test results
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
[description-setter] Description set: ZOOKEEPER-3034
Putting comment on the pull request
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Email was triggered for: Success
Sending email for trigger: Success
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8



###
## FAILED TESTS (if any) 
##
All tests passed

[jira] [Commented] (ZOOKEEPER-3034) Facing issues while building from source

2018-05-24 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on ZOOKEEPER-3034:
--

+1 overall.  GitHub Pull Request  Build
  

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

+1 tests included.  The patch appears to include 1 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 3.0.1) 
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-github-pr-build/1754//testReport/
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/1754//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Console output: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/1754//console

This message is automatically generated.

> Facing issues while building from source
> 
>
> Key: ZOOKEEPER-3034
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3034
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: build
>Affects Versions: 3.4.11
> Environment: Linux x86_64, Ubuntu 18.04, Ubuntu 17.10.
>Reporter: Namrata Bhave
>Assignee: Andor Molnar
>Priority: Minor
>  Labels: pull-request-available
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> Building Zookeeper from source using below steps:
> {{git clone git://github.com/apache/zookeeper}}
>  {{cd zookeeper}}
>  {{git checkout tags/release-3.4.11}}
>  {{ant compile}}
>  {{cd src/c}}
>  {{sudo apt-get install -y libcppunit-dev}}
>  {{ACLOCAL="aclocal -I /usr/share/aclocal" autoreconf -if}}
>  {{./configure && make && sudo make install}}
>  {{sudo make distclean}}
>  
> The 'autoreconf -if' step fails with below error:
>  + ACLOCAL='aclocal -I /usr/share/aclocal'
>  + autoreconf -if
>  configure.ac:37: warning: macro 'AM_PATH_CPPUNIT' not found in library
>  libtoolize: putting auxiliary files in '.'.
>  libtoolize: copying file './ltmain.sh'
>  libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
>  libtoolize: and rerunning libtoolize and aclocal.
>  libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
>  configure.ac:37: warning: macro 'AM_PATH_CPPUNIT' not found in library
>  configure.ac:37: error: possibly undefined macro: AM_PATH_CPPUNIT
>  If this token and others are legitimate, please use m4_pattern_allow.
>  See the Autoconf documentation.
>  autoreconf: /usr/bin/autoconf failed with exit status: 1
>  Build step 'Execute shell' marked build as failure
>   
> This is happening on Ubuntu 18.04. Can someone please help in resolving this 
> error?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[GitHub] zookeeper issue #307: ZOOKEEPER-2770 ZooKeeper slow operation log

2018-05-24 Thread karanmehta93
Github user karanmehta93 commented on the issue:

https://github.com/apache/zookeeper/pull/307
  
@hanm Got a few spare cycles to address my comments?


---


Failed: ZOOKEEPER- PreCommit Build #1753

2018-05-24 Thread Apache Jenkins Server
Build: https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/1753/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 84.28 MB...]
 [exec] 
 [exec] +1 javadoc.  The javadoc tool did not generate any warning 
messages.
 [exec] 
 [exec] +1 javac.  The applied patch does not increase the total number 
of javac compiler warnings.
 [exec] 
 [exec] +1 findbugs.  The patch does not introduce any new Findbugs 
(version 3.0.1) warnings.
 [exec] 
 [exec] +1 release audit.  The applied patch does not increase the 
total number of release audit warnings.
 [exec] 
 [exec] -1 core tests.  The patch failed core unit tests.
 [exec] 
 [exec] +1 contrib tests.  The patch passed contrib unit tests.
 [exec] 
 [exec] Test results: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/1753//testReport/
 [exec] Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/1753//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
 [exec] Console output: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/1753//console
 [exec] 
 [exec] This message is automatically generated.
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec] Adding comment to Jira.
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec] Comment with id 16489772 added to ZOOKEEPER-3034.
 [exec] Session logged out. Session was 
JSESSIONID=197C1DC719B36884479D585C7F278B50.
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec] Finished build.
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec] mv: 
‘/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/patchprocess’
 and 
‘/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/patchprocess’
 are the same file

BUILD FAILED
/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/build.xml:1737:
 exec returned: 1

Total time: 22 minutes 10 seconds
Build step 'Execute shell' marked build as failure
Archiving artifacts
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Recording test results
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
[description-setter] Description set: ZOOKEEPER-3034
Putting comment on the pull request
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8



###
## FAILED TESTS (if any) 
##
3 tests failed.
FAILED:  
org.apache.zookeeper.server.quorum.CommitProcessorConcurrencyTest.noStarvationOfNonLocalCommittedRequestsTest

Error Message:
test timed out after 1000 milliseconds

Stack Trace:
org.junit.runners.model.TestTimedOutException: test timed out after 1000 
milliseconds
at java.lang.Long.hashCode(Long.java:1061)
at java.lang.Long.hashCode(Long.java:1049)
at java.util.HashMap.hash(HashMap.java:339)
at java.util.HashMap.containsKey(HashMap.java:596)
at 
org.apache.zookeeper.server.quorum.CommitProcessor.run(CommitProcessor.java:200)
at 
org.apache.zookeeper.server.quorum.CommitProcessorConcurrencyTest.noStarvationOfNonLocalCommittedRequestsTest(CommitProcessorConcurrencyTest.java:300)
at 
org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:79)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:748)


FAILED:  
org.apache.zookeeper.server.quorum.QuorumPeerMainTest.testFailedTxnAsPartOfQuorumLoss

Error Message:
KeeperErrorCode = Session expired for /zk2

Stack Trace:
org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = 
Session expired for /zk2
at 

[jira] [Commented] (ZOOKEEPER-3034) Facing issues while building from source

2018-05-24 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on ZOOKEEPER-3034:
--

-1 overall.  GitHub Pull Request  Build
  

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

+1 tests included.  The patch appears to include 1 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 3.0.1) 
warnings.

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

-1 core tests.  The patch failed core unit tests.

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

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

This message is automatically generated.

> Facing issues while building from source
> 
>
> Key: ZOOKEEPER-3034
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3034
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: build
>Affects Versions: 3.4.11
> Environment: Linux x86_64, Ubuntu 18.04, Ubuntu 17.10.
>Reporter: Namrata Bhave
>Assignee: Andor Molnar
>Priority: Minor
>  Labels: pull-request-available
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> Building Zookeeper from source using below steps:
> {{git clone git://github.com/apache/zookeeper}}
>  {{cd zookeeper}}
>  {{git checkout tags/release-3.4.11}}
>  {{ant compile}}
>  {{cd src/c}}
>  {{sudo apt-get install -y libcppunit-dev}}
>  {{ACLOCAL="aclocal -I /usr/share/aclocal" autoreconf -if}}
>  {{./configure && make && sudo make install}}
>  {{sudo make distclean}}
>  
> The 'autoreconf -if' step fails with below error:
>  + ACLOCAL='aclocal -I /usr/share/aclocal'
>  + autoreconf -if
>  configure.ac:37: warning: macro 'AM_PATH_CPPUNIT' not found in library
>  libtoolize: putting auxiliary files in '.'.
>  libtoolize: copying file './ltmain.sh'
>  libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
>  libtoolize: and rerunning libtoolize and aclocal.
>  libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
>  configure.ac:37: warning: macro 'AM_PATH_CPPUNIT' not found in library
>  configure.ac:37: error: possibly undefined macro: AM_PATH_CPPUNIT
>  If this token and others are legitimate, please use m4_pattern_allow.
>  See the Autoconf documentation.
>  autoreconf: /usr/bin/autoconf failed with exit status: 1
>  Build step 'Execute shell' marked build as failure
>   
> This is happening on Ubuntu 18.04. Can someone please help in resolving this 
> error?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


Failed: ZOOKEEPER- PreCommit Build #1752

2018-05-24 Thread Apache Jenkins Server
Build: https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/1752/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 6.50 KB...]
 [exec] 
 [exec] Pull request title: ZOOKEEPER-3034 Facing issues while building 
from source
 [exec] Defect number: ZOOKEEPER-3034
 [exec] - Parsed args, going to checkout -
 [exec] 
 [exec] 
 [exec]  Dload  Upload   Total   Spent
Left  Speed
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec] Testing patch for pull request 528.
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec] 
 [exec]   0 00 00 0  0  0 --:--:-- --:--:-- 
--:--:-- 0100   1410   1410 0644  0 --:--:-- --:--:-- 
--:--:--   646
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec]  Pre-build trunk to verify trunk stability and javac warnings
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec] /home/jenkins/tools/ant/apache-ant-1.9.9/bin/ant  
-Djavac.args=-Xlint -Xmaxwarns 1000 
-Djava5.home=/home/jenkins/tools/java5/latest/ 
-Dforrest.home=/home/jenkins/tools/forrest/latest/ -DZookeeperPatchProcess= 
clean tar > 
/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/patchprocess/trunkJavacWarnings.txt
 2>&1
 [exec] Trunk compilation is broken?
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec] Finished build.
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec]   0 00  27080 0   5405  0 --:--:-- --:--:-- 
--:--:--  5405mv: 
'/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/patchprocess'
 and 
'/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/patchprocess'
 are the same file

BUILD FAILED
/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/build.xml:1737:
 exec returned: 1

Total time: 25 seconds
Build step 'Execute shell' marked build as failure
Archiving artifacts
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Recording test results
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
ERROR: Step ?Publish JUnit test result report? failed: No test report files 
were found. Configuration error?
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
[description-setter] Description set: ZOOKEEPER-3034
Putting comment on the pull request
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8



###
## FAILED TESTS (if any) 
##
No tests ran.

Failed: ZOOKEEPER- PreCommit Build #1751

2018-05-24 Thread Apache Jenkins Server
Build: https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/1751/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 6.50 KB...]
 [exec] Pull request id: 528
 [exec]  Dload  Upload   Total   Spent
Left  Speed
 [exec] 
 [exec] Pull request title: ZOOKEEPER-3034 Facing issues while building 
from source
 [exec] Defect number: ZOOKEEPER-3034
 [exec] - Parsed args, going to checkout -
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec] Testing patch for pull request 528.
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec] 
 [exec]   0 00 00 0  0  0 --:--:-- --:--:-- 
--:--:-- 0  0 00 00 0  0  0 --:--:-- --:--:-- 
--:--:-- 0100   1410   1410 0752  0 --:--:-- --:--:-- 
--:--:--   750
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec]  Pre-build trunk to verify trunk stability and javac warnings
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec] /home/jenkins/tools/ant/apache-ant-1.9.9/bin/ant  
-Djavac.args=-Xlint -Xmaxwarns 1000 
-Djava5.home=/home/jenkins/tools/java5/latest/ 
-Dforrest.home=/home/jenkins/tools/forrest/latest/ -DZookeeperPatchProcess= 
clean tar > 
/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/patchprocess/trunkJavacWarnings.txt
 2>&1
 [exec] Trunk compilation is broken?
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec] Finished build.
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec]   0 00  27080 0   6061  0 --:--:-- --:--:-- 
--:--:--  6061mv: 
'/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/patchprocess'
 and 
'/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/patchprocess'
 are the same file

BUILD FAILED
/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/build.xml:1737:
 exec returned: 1

Total time: 25 seconds
Build step 'Execute shell' marked build as failure
Archiving artifacts
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Recording test results
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
ERROR: Step ?Publish JUnit test result report? failed: No test report files 
were found. Configuration error?
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
[description-setter] Description set: ZOOKEEPER-3034
Putting comment on the pull request
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8



###
## FAILED TESTS (if any) 
##
No tests ran.

Failed: ZOOKEEPER- PreCommit Build #1750

2018-05-24 Thread Apache Jenkins Server
Build: https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/1750/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 6.50 KB...]
 [exec] 
 [exec] Pull request title: ZOOKEEPER-3034 Facing issues while building 
from source
 [exec] Defect number: ZOOKEEPER-3034 Dload 
 Upload   Total   SpentLeft  Speed
 [exec] 
 [exec] 
 [exec] - Parsed args, going to checkout -
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec] Testing patch for pull request 528.
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec] 
 [exec]   0 00 00 0  0  0 --:--:-- --:--:-- 
--:--:-- 0  0 00 00 0  0  0 --:--:-- --:--:-- 
--:--:-- 0100   1410   1410 0655  0 --:--:-- --:--:-- 
--:--:--   652
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec]  Pre-build trunk to verify trunk stability and javac warnings
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec] /home/jenkins/tools/ant/apache-ant-1.9.9/bin/ant  
-Djavac.args=-Xlint -Xmaxwarns 1000 
-Djava5.home=/home/jenkins/tools/java5/latest/ 
-Dforrest.home=/home/jenkins/tools/forrest/latest/ -DZookeeperPatchProcess= 
clean tar > 
/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/patchprocess/trunkJavacWarnings.txt
 2>&1
 [exec] Trunk compilation is broken?
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec] Finished build.
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec]   0 00  31620 0   6676  0 --:--:-- --:--:-- 
--:--:--  6676mv: 
'/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/patchprocess'
 and 
'/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/patchprocess'
 are the same file

BUILD FAILED
/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/build.xml:1737:
 exec returned: 1

Total time: 30 seconds
Build step 'Execute shell' marked build as failure
Archiving artifacts
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Recording test results
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
ERROR: Step ?Publish JUnit test result report? failed: No test report files 
were found. Configuration error?
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
[description-setter] Description set: ZOOKEEPER-3034
Putting comment on the pull request
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8
Setting JDK_1_8_LATEST__HOME=/home/jenkins/tools/java/latest1.8



###
## FAILED TESTS (if any) 
##
No tests ran.

[jira] [Commented] (ZOOKEEPER-3049) would zookeeper transaction(multi) block the concurrent read?

2018-05-24 Thread Fangmin Lv (JIRA)

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

Fangmin Lv commented on ZOOKEEPER-3049:
---

[~wayne sun] yes, it's kind of atomic, but guarantees from CommitProcessor, 
what [~bkanivets] pointed is the CommitProcessor logic where it will either 
processing bunch of reads or processing a single write, check the 
isProcessingCommit before processing read. 

The master code is a bit different but same idea.

> would zookeeper transaction(multi) block the concurrent read?
> -
>
> Key: ZOOKEEPER-3049
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3049
> Project: ZooKeeper
>  Issue Type: Wish
>  Components: documentation
>Reporter: wayne
>Priority: Major
>
> For instance, the original data for znode1 and znode2 are 2 and 4 
> respectively. I want to perform increment operations over them. Finally, I 
> would get (3, 5) for znode1 and znode2. In order to keep atomicity, I used 
> multi() api. Is there any possibility that any clients could read (3, 4) 
> concurrently? That is, the read happened after znode1++ and before znode2++?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[GitHub] zookeeper issue #522: ZOOKEEPER-1919 Update the C implementation of removeWa...

2018-05-24 Thread rgs1
Github user rgs1 commented on the issue:

https://github.com/apache/zookeeper/pull/522
  
lgtm, r+. thanks!


---


ZooKeeper_branch34_openjdk7 - Build # 1933 - Still Failing

2018-05-24 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper_branch34_openjdk7/1933/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 40.83 KB...]
[junit] Running org.apache.zookeeper.test.SaslAuthDesignatedServerTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.736 sec
[junit] Running org.apache.zookeeper.test.SaslAuthFailDesignatedClientTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
1.51 sec
[junit] Running org.apache.zookeeper.test.SaslAuthFailNotifyTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.619 sec
[junit] Running org.apache.zookeeper.test.SaslAuthFailTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.69 sec
[junit] Running org.apache.zookeeper.test.SaslAuthMissingClientConfigTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.584 sec
[junit] Running org.apache.zookeeper.test.SaslClientTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.097 sec
[junit] Running org.apache.zookeeper.test.SessionInvalidationTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.755 sec
[junit] Running org.apache.zookeeper.test.SessionTest
[junit] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
10.968 sec
[junit] Running org.apache.zookeeper.test.SessionTimeoutTest
[junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
1.064 sec
[junit] Running org.apache.zookeeper.test.StandaloneTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.881 sec
[junit] Running org.apache.zookeeper.test.StatTest
[junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
1.125 sec
[junit] Running org.apache.zookeeper.test.StaticHostProviderTest
[junit] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
1.455 sec
[junit] Running org.apache.zookeeper.test.SyncCallTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.727 sec
[junit] Running org.apache.zookeeper.test.TruncateTest
[junit] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.8 
sec
[junit] Running org.apache.zookeeper.test.UpgradeTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
1.54 sec
[junit] Running org.apache.zookeeper.test.WatchedEventTest
[junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.111 sec
[junit] Running org.apache.zookeeper.test.WatcherFuncTest
[junit] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
1.423 sec
[junit] Running org.apache.zookeeper.test.WatcherTest
[junit] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
30.715 sec
[junit] Running org.apache.zookeeper.test.ZkDatabaseCorruptionTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
9.75 sec
[junit] Running org.apache.zookeeper.test.ZooKeeperQuotaTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
0.759 sec

fail.build.on.test.failure:

BUILD FAILED
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34_openjdk7/build.xml:1386:
 The following error occurred while executing this line:
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34_openjdk7/build.xml:1389:
 Tests failed!

Total time: 47 minutes 49 seconds
Build step 'Invoke Ant' marked build as failure
Archiving artifacts
Setting OPENJDK_7_ON_UBUNTU_ONLY__HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Recording test results
Setting OPENJDK_7_ON_UBUNTU_ONLY__HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Setting OPENJDK_7_ON_UBUNTU_ONLY__HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Setting OPENJDK_7_ON_UBUNTU_ONLY__HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
Setting OPENJDK_7_ON_UBUNTU_ONLY__HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Setting OPENJDK_7_ON_UBUNTU_ONLY__HOME=/usr/lib/jvm/java-7-openjdk-amd64/



###
## FAILED TESTS (if any) 
##
1 tests failed.
FAILED:  
org.apache.zookeeper.server.quorum.QuorumPeerMainTest.testFailedTxnAsPartOfQuorumLoss

Error Message:
expected:<1> but was:<3>

Stack Trace:
junit.framework.AssertionFailedError: expected:<1> but was:<3>
at 
org.apache.zookeeper.server.quorum.QuorumPeerMainTest.testFailedTxnAsPartOfQuorumLoss(QuorumPeerMainTest.java:1202)
at 
org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:55)

[jira] [Assigned] (ZOOKEEPER-3034) Facing issues while building from source

2018-05-24 Thread Andor Molnar (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-3034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andor Molnar reassigned ZOOKEEPER-3034:
---

Assignee: Andor Molnar

> Facing issues while building from source
> 
>
> Key: ZOOKEEPER-3034
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3034
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: build
>Affects Versions: 3.4.11
> Environment: Linux x86_64, Ubuntu 18.04, Ubuntu 17.10.
>Reporter: Namrata Bhave
>Assignee: Andor Molnar
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> Building Zookeeper from source using below steps:
> {{git clone git://github.com/apache/zookeeper}}
>  {{cd zookeeper}}
>  {{git checkout tags/release-3.4.11}}
>  {{ant compile}}
>  {{cd src/c}}
>  {{sudo apt-get install -y libcppunit-dev}}
>  {{ACLOCAL="aclocal -I /usr/share/aclocal" autoreconf -if}}
>  {{./configure && make && sudo make install}}
>  {{sudo make distclean}}
>  
> The 'autoreconf -if' step fails with below error:
>  + ACLOCAL='aclocal -I /usr/share/aclocal'
>  + autoreconf -if
>  configure.ac:37: warning: macro 'AM_PATH_CPPUNIT' not found in library
>  libtoolize: putting auxiliary files in '.'.
>  libtoolize: copying file './ltmain.sh'
>  libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
>  libtoolize: and rerunning libtoolize and aclocal.
>  libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
>  configure.ac:37: warning: macro 'AM_PATH_CPPUNIT' not found in library
>  configure.ac:37: error: possibly undefined macro: AM_PATH_CPPUNIT
>  If this token and others are legitimate, please use m4_pattern_allow.
>  See the Autoconf documentation.
>  autoreconf: /usr/bin/autoconf failed with exit status: 1
>  Build step 'Execute shell' marked build as failure
>   
> This is happening on Ubuntu 18.04. Can someone please help in resolving this 
> error?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (ZOOKEEPER-3034) Facing issues while building from source

2018-05-24 Thread Andor Molnar (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-3034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andor Molnar updated ZOOKEEPER-3034:

Priority: Minor  (was: Major)

> Facing issues while building from source
> 
>
> Key: ZOOKEEPER-3034
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3034
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: build
>Affects Versions: 3.4.11
> Environment: Linux x86_64, Ubuntu 18.04, Ubuntu 17.10.
>Reporter: Namrata Bhave
>Assignee: Andor Molnar
>Priority: Minor
>  Labels: pull-request-available
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> Building Zookeeper from source using below steps:
> {{git clone git://github.com/apache/zookeeper}}
>  {{cd zookeeper}}
>  {{git checkout tags/release-3.4.11}}
>  {{ant compile}}
>  {{cd src/c}}
>  {{sudo apt-get install -y libcppunit-dev}}
>  {{ACLOCAL="aclocal -I /usr/share/aclocal" autoreconf -if}}
>  {{./configure && make && sudo make install}}
>  {{sudo make distclean}}
>  
> The 'autoreconf -if' step fails with below error:
>  + ACLOCAL='aclocal -I /usr/share/aclocal'
>  + autoreconf -if
>  configure.ac:37: warning: macro 'AM_PATH_CPPUNIT' not found in library
>  libtoolize: putting auxiliary files in '.'.
>  libtoolize: copying file './ltmain.sh'
>  libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
>  libtoolize: and rerunning libtoolize and aclocal.
>  libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
>  configure.ac:37: warning: macro 'AM_PATH_CPPUNIT' not found in library
>  configure.ac:37: error: possibly undefined macro: AM_PATH_CPPUNIT
>  If this token and others are legitimate, please use m4_pattern_allow.
>  See the Autoconf documentation.
>  autoreconf: /usr/bin/autoconf failed with exit status: 1
>  Build step 'Execute shell' marked build as failure
>   
> This is happening on Ubuntu 18.04. Can someone please help in resolving this 
> error?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ZOOKEEPER-3034) Facing issues while building from source

2018-05-24 Thread Andor Molnar (JIRA)

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

Andor Molnar commented on ZOOKEEPER-3034:
-

[~bhavenamrata] That would be useful, thanks. I'm working on the master branch 
at the first place.

> Facing issues while building from source
> 
>
> Key: ZOOKEEPER-3034
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3034
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: build
>Affects Versions: 3.4.11
> Environment: Linux x86_64, Ubuntu 18.04, Ubuntu 17.10.
>Reporter: Namrata Bhave
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> Building Zookeeper from source using below steps:
> {{git clone git://github.com/apache/zookeeper}}
>  {{cd zookeeper}}
>  {{git checkout tags/release-3.4.11}}
>  {{ant compile}}
>  {{cd src/c}}
>  {{sudo apt-get install -y libcppunit-dev}}
>  {{ACLOCAL="aclocal -I /usr/share/aclocal" autoreconf -if}}
>  {{./configure && make && sudo make install}}
>  {{sudo make distclean}}
>  
> The 'autoreconf -if' step fails with below error:
>  + ACLOCAL='aclocal -I /usr/share/aclocal'
>  + autoreconf -if
>  configure.ac:37: warning: macro 'AM_PATH_CPPUNIT' not found in library
>  libtoolize: putting auxiliary files in '.'.
>  libtoolize: copying file './ltmain.sh'
>  libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
>  libtoolize: and rerunning libtoolize and aclocal.
>  libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
>  configure.ac:37: warning: macro 'AM_PATH_CPPUNIT' not found in library
>  configure.ac:37: error: possibly undefined macro: AM_PATH_CPPUNIT
>  If this token and others are legitimate, please use m4_pattern_allow.
>  See the Autoconf documentation.
>  autoreconf: /usr/bin/autoconf failed with exit status: 1
>  Build step 'Execute shell' marked build as failure
>   
> This is happening on Ubuntu 18.04. Can someone please help in resolving this 
> error?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ZOOKEEPER-3034) Facing issues while building from source

2018-05-24 Thread Namrata Bhave (JIRA)

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

Namrata Bhave commented on ZOOKEEPER-3034:
--

[~andorm], I had tried your patch from PR in older version of Zookeeper(3.4.11, 
which is the version of my interest) where it worked. I can try it out on 
master once.

 

> Facing issues while building from source
> 
>
> Key: ZOOKEEPER-3034
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3034
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: build
>Affects Versions: 3.4.11
> Environment: Linux x86_64, Ubuntu 18.04, Ubuntu 17.10.
>Reporter: Namrata Bhave
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> Building Zookeeper from source using below steps:
> {{git clone git://github.com/apache/zookeeper}}
>  {{cd zookeeper}}
>  {{git checkout tags/release-3.4.11}}
>  {{ant compile}}
>  {{cd src/c}}
>  {{sudo apt-get install -y libcppunit-dev}}
>  {{ACLOCAL="aclocal -I /usr/share/aclocal" autoreconf -if}}
>  {{./configure && make && sudo make install}}
>  {{sudo make distclean}}
>  
> The 'autoreconf -if' step fails with below error:
>  + ACLOCAL='aclocal -I /usr/share/aclocal'
>  + autoreconf -if
>  configure.ac:37: warning: macro 'AM_PATH_CPPUNIT' not found in library
>  libtoolize: putting auxiliary files in '.'.
>  libtoolize: copying file './ltmain.sh'
>  libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
>  libtoolize: and rerunning libtoolize and aclocal.
>  libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
>  configure.ac:37: warning: macro 'AM_PATH_CPPUNIT' not found in library
>  configure.ac:37: error: possibly undefined macro: AM_PATH_CPPUNIT
>  If this token and others are legitimate, please use m4_pattern_allow.
>  See the Autoconf documentation.
>  autoreconf: /usr/bin/autoconf failed with exit status: 1
>  Build step 'Execute shell' marked build as failure
>   
> This is happening on Ubuntu 18.04. Can someone please help in resolving this 
> error?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ZOOKEEPER-3034) Facing issues while building from source

2018-05-24 Thread Andor Molnar (JIRA)

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

Andor Molnar commented on ZOOKEEPER-3034:
-

[~bhavenamrata] No probs.

Are u able to compile and run tests on Ubuntu 18.04? I got the following error 
message:

 
{noformat}
[exec] /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. 
-I/home/andor/git/my-zookeeper/src/c 
-I/home/andor/git/my-zookeeper/src/c/include 
-I/home/andor/git/my-zookeeper/src/c/tests 
-I/home/andor/git/my-zookeeper/src/c/generated -Wall -Werror 
-Wdeclaration-after-statement -g -O2 -D_GNU_SOURCE -MT zookeeper.lo -MD -MP -MF 
.deps/zookeeper.Tpo -c -o zookeeper.lo `test -f 'src/zookeeper.c' || echo 
'/home/andor/git/my-zookeeper/src/c/'`src/zookeeper.c
[exec] /home/andor/git/my-zookeeper/src/c/src/zookeeper.c: In function 
‘print_completion_queue’:
[exec] /home/andor/git/my-zookeeper/src/c/src/zookeeper.c:2530:5: error: null 
argument where non-null required (argument 1) [-Werror=nonnull]
[exec] fprintf(LOGSTREAM,"Completion queue: ");
[exec] ^~~
[exec] /home/andor/git/my-zookeeper/src/c/src/zookeeper.c:2532:9: error: null 
argument where non-null required (argument 1) [-Werror=nonnull]
[exec] fprintf(LOGSTREAM,"empty\n");
[exec] ^~~
[exec] /home/andor/git/my-zookeeper/src/c/src/zookeeper.c:2538:9: error: null 
argument where non-null required (argument 1) [-Werror=nonnull]
[exec] fprintf(LOGSTREAM,"%d,",cptr->xid);
[exec] ^~~
[exec] /home/andor/git/my-zookeeper/src/c/src/zookeeper.c:2541:5: error: null 
argument where non-null required (argument 1) [-Werror=nonnull]
[exec] fprintf(LOGSTREAM,"end\n");
[exec] ^~~
[exec] libtool: compile: gcc -DHAVE_CONFIG_H -I. 
-I/home/andor/git/my-zookeeper/src/c 
-I/home/andor/git/my-zookeeper/src/c/include 
-I/home/andor/git/my-zookeeper/src/c/tests 
-I/home/andor/git/my-zookeeper/src/c/generated -Wall -Werror 
-Wdeclaration-after-statement -g -O2 -D_GNU_SOURCE -MT zookeeper.lo -MD -MP -MF 
.deps/zookeeper.Tpo -c /home/andor/git/my-zookeeper/src/c/src/zookeeper.c -fPIC 
-DPIC -o .libs/zookeeper.o
[exec] Makefile:1030: recipe for target 'zookeeper.lo' failed
[exec] cc1: all warnings being treated as errors
[exec] make: *** [zookeeper.lo] Error 1
{noformat}
{panel:title=GCC version}
$ gcc --version
gcc (Ubuntu 7.3.0-16ubuntu3) 7.3.0
{panel}
Looks like there's some additional plumbing work needed to fully support 18.04

 

> Facing issues while building from source
> 
>
> Key: ZOOKEEPER-3034
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3034
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: build
>Affects Versions: 3.4.11
> Environment: Linux x86_64, Ubuntu 18.04, Ubuntu 17.10.
>Reporter: Namrata Bhave
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> Building Zookeeper from source using below steps:
> {{git clone git://github.com/apache/zookeeper}}
>  {{cd zookeeper}}
>  {{git checkout tags/release-3.4.11}}
>  {{ant compile}}
>  {{cd src/c}}
>  {{sudo apt-get install -y libcppunit-dev}}
>  {{ACLOCAL="aclocal -I /usr/share/aclocal" autoreconf -if}}
>  {{./configure && make && sudo make install}}
>  {{sudo make distclean}}
>  
> The 'autoreconf -if' step fails with below error:
>  + ACLOCAL='aclocal -I /usr/share/aclocal'
>  + autoreconf -if
>  configure.ac:37: warning: macro 'AM_PATH_CPPUNIT' not found in library
>  libtoolize: putting auxiliary files in '.'.
>  libtoolize: copying file './ltmain.sh'
>  libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
>  libtoolize: and rerunning libtoolize and aclocal.
>  libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
>  configure.ac:37: warning: macro 'AM_PATH_CPPUNIT' not found in library
>  configure.ac:37: error: possibly undefined macro: AM_PATH_CPPUNIT
>  If this token and others are legitimate, please use m4_pattern_allow.
>  See the Autoconf documentation.
>  autoreconf: /usr/bin/autoconf failed with exit status: 1
>  Build step 'Execute shell' marked build as failure
>   
> This is happening on Ubuntu 18.04. Can someone please help in resolving this 
> error?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)