[jira] [Commented] (ZOOKEEPER-2564) No message is prompted when trying to delete quota with different quota option

2016-11-17 Thread Michael Han (JIRA)

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

Michael Han commented on ZOOKEEPER-2564:


[~chenyuyun-emc] You can send a pull request through git, please check out 
[this 
page|https://cwiki.apache.org/confluence/display/ZOOKEEPER/HowToContribute] 
(section Pull requests via github). 



> No message is prompted when trying to delete quota with different quota option
> --
>
> Key: ZOOKEEPER-2564
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2564
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: server
>Affects Versions: 3.5.1
>Reporter: Rakesh Kumar Singh
>Assignee: Rakesh Kumar Singh
>Priority: Minor
>
> No message is prompted when trying to delete quota with different quota 
> option.
> Steps to reproduce:-
> 1. Start zookeeper in cluster mode 
> 2. Create some node and set quota like
> setquota -n 10 /test
> 3. Now try to delete as below:-
> delquota -b /test
> Here no message/exception is prompted. We should prompt message like 
> "Byte Quota does not exist for /test"



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


[jira] [Commented] (ZOOKEEPER-2564) No message is prompted when trying to delete quota with different quota option

2016-11-17 Thread kevin.chen (JIRA)

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

kevin.chen commented on ZOOKEEPER-2564:
---

hi Rakesh Kumar Singh

I fixed this issue today, this is my first time to contribute to the opensource 
project, It seems I can't submit the patch, could you help me on this?  very 
help you can give me a help at the beginning.

> No message is prompted when trying to delete quota with different quota option
> --
>
> Key: ZOOKEEPER-2564
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2564
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: server
>Affects Versions: 3.5.1
>Reporter: Rakesh Kumar Singh
>Assignee: Rakesh Kumar Singh
>Priority: Minor
>
> No message is prompted when trying to delete quota with different quota 
> option.
> Steps to reproduce:-
> 1. Start zookeeper in cluster mode 
> 2. Create some node and set quota like
> setquota -n 10 /test
> 3. Now try to delete as below:-
> delquota -b /test
> Here no message/exception is prompted. We should prompt message like 
> "Byte Quota does not exist for /test"



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


Failed: ZOOKEEPER- PreCommit Build #76

2016-11-17 Thread Apache Jenkins Server
Build: https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/76/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 469976 lines...]
 [exec] +1 tests included.  The patch appears to include 3 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 appears to introduce 20 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/76//testReport/
 [exec] Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/76//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
 [exec] Console output: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/76//console
 [exec] 
 [exec] This message is automatically generated.
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec] Adding comment to Jira.
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec] Comment added.
 [exec] f6d3bfe71e0064ea075ba53f93b9d7020b2813fc logged out
 [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:1628:
 exec returned: 1

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



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

[jira] [Commented] (ZOOKEEPER-2479) Add 'electionTimeTaken' value in LeaderMXBean and FollowerMXBean

2016-11-17 Thread Hadoop QA (JIRA)

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

Hadoop QA commented on ZOOKEEPER-2479:
--

-1 overall.  GitHub Pull Request  Build
  

+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 appears to introduce 20 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/76//testReport/
Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/76//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Console output: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/76//console

This message is automatically generated.

> Add 'electionTimeTaken' value in LeaderMXBean and FollowerMXBean
> 
>
> Key: ZOOKEEPER-2479
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2479
> Project: ZooKeeper
>  Issue Type: Improvement
>  Components: quorum
>Reporter: Rakesh R
>Assignee: Rakesh R
> Fix For: 3.4.10, 3.5.3, 3.6.0
>
> Attachments: ZOOKEEPER-2479.patch, ZOOKEEPER-2479.patch, 
> ZOOKEEPER-2479.patch, ZOOKEEPER-2479.patch, ZOOKEEPER-2479.patch, 
> ZOOKEEPER-2479.patch
>
>
> The idea of this jira is to expose {{time taken}} for the leader election via 
> jmx Leader, Follower beans.



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


Failed: ZOOKEEPER- PreCommit Build #75

2016-11-17 Thread Apache Jenkins Server
Build: https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/75/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 481686 lines...]
 [exec] +1 tests included.  The patch appears to include 3 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 appears to introduce 20 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/75//testReport/
 [exec] Findbugs warnings: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/75//artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
 [exec] Console output: 
https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/75//console
 [exec] 
 [exec] This message is automatically generated.
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec] Adding comment to Jira.
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec] Comment added.
 [exec] 69522645ee4c51bb8270675098e139ef3a2c31bb logged out
 [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:1628:
 exec returned: 1

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



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

[jira] [Commented] (ZOOKEEPER-2479) Add 'electionTimeTaken' value in LeaderMXBean and FollowerMXBean

2016-11-17 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on ZOOKEEPER-2479:
---

Github user rakeshadr commented on a diff in the pull request:

https://github.com/apache/zookeeper/pull/98#discussion_r88604035
  
--- Diff: src/java/test/org/apache/zookeeper/test/QuorumMajorityTest.java 
---
@@ -36,7 +38,30 @@
 /***/
 @Test
 public void testMajQuorums() throws Throwable {
-   
+LOG.info("Verify QuorumPeer#electionTimeTaken jmx bean attribute");
+
+ArrayList peers = getPeerList();
+for (int i = 1; i <= peers.size(); i++) {
+QuorumPeer qp = peers.get(i - 1);
+Long electionTimeTaken = -1L;
+String bean = "";
+if (qp.getPeerState() == ServerState.FOLLOWING) {
+bean = CommonNames.DOMAIN + ":name0=ReplicatedServer_id" + 
i
++ ",name1=replica." + i + ",name2=Follower";
--- End diff --

Thanks @rgs1, I've have modified the test code as per your suggestion. 
Please take another look at the new commits.


> Add 'electionTimeTaken' value in LeaderMXBean and FollowerMXBean
> 
>
> Key: ZOOKEEPER-2479
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2479
> Project: ZooKeeper
>  Issue Type: Improvement
>  Components: quorum
>Reporter: Rakesh R
>Assignee: Rakesh R
> Fix For: 3.4.10, 3.5.3, 3.6.0
>
> Attachments: ZOOKEEPER-2479.patch, ZOOKEEPER-2479.patch, 
> ZOOKEEPER-2479.patch, ZOOKEEPER-2479.patch, ZOOKEEPER-2479.patch, 
> ZOOKEEPER-2479.patch
>
>
> The idea of this jira is to expose {{time taken}} for the leader election via 
> jmx Leader, Follower beans.



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


[GitHub] zookeeper pull request #98: ZOOKEEPER-2479

2016-11-17 Thread rakeshadr
Github user rakeshadr commented on a diff in the pull request:

https://github.com/apache/zookeeper/pull/98#discussion_r88604035
  
--- Diff: src/java/test/org/apache/zookeeper/test/QuorumMajorityTest.java 
---
@@ -36,7 +38,30 @@
 /***/
 @Test
 public void testMajQuorums() throws Throwable {
-   
+LOG.info("Verify QuorumPeer#electionTimeTaken jmx bean attribute");
+
+ArrayList peers = getPeerList();
+for (int i = 1; i <= peers.size(); i++) {
+QuorumPeer qp = peers.get(i - 1);
+Long electionTimeTaken = -1L;
+String bean = "";
+if (qp.getPeerState() == ServerState.FOLLOWING) {
+bean = CommonNames.DOMAIN + ":name0=ReplicatedServer_id" + 
i
++ ",name1=replica." + i + ",name2=Follower";
--- End diff --

Thanks @rgs1, I've have modified the test code as per your suggestion. 
Please take another look at the new commits.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (ZOOKEEPER-2479) Add 'electionTimeTaken' value in LeaderMXBean and FollowerMXBean

2016-11-17 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on ZOOKEEPER-2479:
---

Github user rgs1 commented on a diff in the pull request:

https://github.com/apache/zookeeper/pull/98#discussion_r88602850
  
--- Diff: src/java/test/org/apache/zookeeper/test/QuorumMajorityTest.java 
---
@@ -36,7 +38,30 @@
 /***/
 @Test
 public void testMajQuorums() throws Throwable {
-   
+LOG.info("Verify QuorumPeer#electionTimeTaken jmx bean attribute");
+
+ArrayList peers = getPeerList();
+for (int i = 1; i <= peers.size(); i++) {
+QuorumPeer qp = peers.get(i - 1);
+Long electionTimeTaken = -1L;
+String bean = "";
+if (qp.getPeerState() == ServerState.FOLLOWING) {
+bean = CommonNames.DOMAIN + ":name0=ReplicatedServer_id" + 
i
++ ",name1=replica." + i + ",name2=Follower";
+electionTimeTaken = (Long) JMXEnv.ensureBeanAttribute(bean,
+"ElectionTimeTaken");
+Assert.assertTrue("Wrong electionTimeTaken value!",
+electionTimeTaken >= 0);
+} else if (qp.getPeerState() == ServerState.LEADING) {
+bean = CommonNames.DOMAIN + ":name0=ReplicatedServer_id" + 
i
++ ",name1=replica." + i + ",name2=Leader";
--- End diff --

ditto


> Add 'electionTimeTaken' value in LeaderMXBean and FollowerMXBean
> 
>
> Key: ZOOKEEPER-2479
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2479
> Project: ZooKeeper
>  Issue Type: Improvement
>  Components: quorum
>Reporter: Rakesh R
>Assignee: Rakesh R
> Fix For: 3.4.10, 3.5.3, 3.6.0
>
> Attachments: ZOOKEEPER-2479.patch, ZOOKEEPER-2479.patch, 
> ZOOKEEPER-2479.patch, ZOOKEEPER-2479.patch, ZOOKEEPER-2479.patch, 
> ZOOKEEPER-2479.patch
>
>
> The idea of this jira is to expose {{time taken}} for the leader election via 
> jmx Leader, Follower beans.



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


[jira] [Commented] (ZOOKEEPER-2479) Add 'electionTimeTaken' value in LeaderMXBean and FollowerMXBean

2016-11-17 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on ZOOKEEPER-2479:
---

Github user rgs1 commented on a diff in the pull request:

https://github.com/apache/zookeeper/pull/98#discussion_r88602842
  
--- Diff: src/java/test/org/apache/zookeeper/test/QuorumMajorityTest.java 
---
@@ -36,7 +38,30 @@
 /***/
 @Test
 public void testMajQuorums() throws Throwable {
-   
+LOG.info("Verify QuorumPeer#electionTimeTaken jmx bean attribute");
+
+ArrayList peers = getPeerList();
+for (int i = 1; i <= peers.size(); i++) {
+QuorumPeer qp = peers.get(i - 1);
+Long electionTimeTaken = -1L;
+String bean = "";
+if (qp.getPeerState() == ServerState.FOLLOWING) {
+bean = CommonNames.DOMAIN + ":name0=ReplicatedServer_id" + 
i
++ ",name1=replica." + i + ",name2=Follower";
--- End diff --

hyper nit: `String.format()` reads better than `+`


> Add 'electionTimeTaken' value in LeaderMXBean and FollowerMXBean
> 
>
> Key: ZOOKEEPER-2479
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2479
> Project: ZooKeeper
>  Issue Type: Improvement
>  Components: quorum
>Reporter: Rakesh R
>Assignee: Rakesh R
> Fix For: 3.4.10, 3.5.3, 3.6.0
>
> Attachments: ZOOKEEPER-2479.patch, ZOOKEEPER-2479.patch, 
> ZOOKEEPER-2479.patch, ZOOKEEPER-2479.patch, ZOOKEEPER-2479.patch, 
> ZOOKEEPER-2479.patch
>
>
> The idea of this jira is to expose {{time taken}} for the leader election via 
> jmx Leader, Follower beans.



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


[GitHub] zookeeper pull request #98: ZOOKEEPER-2479

2016-11-17 Thread rgs1
Github user rgs1 commented on a diff in the pull request:

https://github.com/apache/zookeeper/pull/98#discussion_r88602850
  
--- Diff: src/java/test/org/apache/zookeeper/test/QuorumMajorityTest.java 
---
@@ -36,7 +38,30 @@
 /***/
 @Test
 public void testMajQuorums() throws Throwable {
-   
+LOG.info("Verify QuorumPeer#electionTimeTaken jmx bean attribute");
+
+ArrayList peers = getPeerList();
+for (int i = 1; i <= peers.size(); i++) {
+QuorumPeer qp = peers.get(i - 1);
+Long electionTimeTaken = -1L;
+String bean = "";
+if (qp.getPeerState() == ServerState.FOLLOWING) {
+bean = CommonNames.DOMAIN + ":name0=ReplicatedServer_id" + 
i
++ ",name1=replica." + i + ",name2=Follower";
+electionTimeTaken = (Long) JMXEnv.ensureBeanAttribute(bean,
+"ElectionTimeTaken");
+Assert.assertTrue("Wrong electionTimeTaken value!",
+electionTimeTaken >= 0);
+} else if (qp.getPeerState() == ServerState.LEADING) {
+bean = CommonNames.DOMAIN + ":name0=ReplicatedServer_id" + 
i
++ ",name1=replica." + i + ",name2=Leader";
--- End diff --

ditto


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] zookeeper pull request #98: ZOOKEEPER-2479

2016-11-17 Thread rgs1
Github user rgs1 commented on a diff in the pull request:

https://github.com/apache/zookeeper/pull/98#discussion_r88602842
  
--- Diff: src/java/test/org/apache/zookeeper/test/QuorumMajorityTest.java 
---
@@ -36,7 +38,30 @@
 /***/
 @Test
 public void testMajQuorums() throws Throwable {
-   
+LOG.info("Verify QuorumPeer#electionTimeTaken jmx bean attribute");
+
+ArrayList peers = getPeerList();
+for (int i = 1; i <= peers.size(); i++) {
+QuorumPeer qp = peers.get(i - 1);
+Long electionTimeTaken = -1L;
+String bean = "";
+if (qp.getPeerState() == ServerState.FOLLOWING) {
+bean = CommonNames.DOMAIN + ":name0=ReplicatedServer_id" + 
i
++ ",name1=replica." + i + ",name2=Follower";
--- End diff --

hyper nit: `String.format()` reads better than `+`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (ZOOKEEPER-2574) PurgeTxnLog can inadvertently delete required txn log files

2016-11-17 Thread Rakesh R (JIRA)

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

Rakesh R commented on ZOOKEEPER-2574:
-

Yes, I've identified few occurrences in the doc. One more 
[comment|https://issues.apache.org/jira/browse/ZOOKEEPER-2574?focusedCommentId=15643171=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15643171]
 is open and has to be fixed. Probably, we could do more detailed reviews and 
all such cases has to be re-phrased as there was a behavioral change due to the 
[Learner snapshotting 
logic|https://github.com/apache/zookeeper/blob/branch-3.4/src/java/main/org/apache/zookeeper/server/quorum/Learner.java#L439].

> PurgeTxnLog can inadvertently delete required txn log files
> ---
>
> Key: ZOOKEEPER-2574
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2574
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: server
>Affects Versions: 3.4.7, 3.4.8, 3.5.0, 3.5.1, 3.5.2
> Environment: Zookeeper 3.4.8, standalone, and 3-server quorum
>Reporter: Abhishek Rai
>Assignee: Abhishek Rai
> Fix For: 3.4.10, 3.5.3
>
> Attachments: ZOOKEEPER-2574.2.patch, ZOOKEEPER-2574.3.patch, 
> ZOOKEEPER-2574.4.patch, ZOOKEEPER-2574.5.patch, ZOOKEEPER-2574.6.patch, 
> ZOOKEEPER-2574.patch
>
>
> As part of the fix for ZOOKEEPER-1797, the call to 
> FileTxnSnapLog.getSnapshotLogs() was removed from PurgeTxnLog.java.  As a 
> result, some old-looking but required txn log files can be deleted, resulting 
> in data corruption or loss.
> For example, consider the following:
> 1. Configuration:
> autopurge.snapRetainCount=3
> 2. Following files exist:
> log.100 spans transactions from zxid=100 till zxid=140 (inclusive)
> snapshot.110 - snapshot as of zxid=110
> snapshot.120 - snapshot as of zxid=120
> snapshot.130 - snapshot as of zxid=130
> Above scenario is possible when snapshotting has happened multiple times but 
> without accompanying log rollover, which is possible if the server was 
> running as a learner.
> 3. PurgeTxnLog retains all snapshots but deletes log.100 because its zxid is 
> older than the zxid of the oldest snapshot (110).  This results in loss of 
> transactions in the range 131-140.
> Before the fix for ZOOKEEPER-1797, this was avoided by the call to 
> FileTxnSnapLog.getSnapshotLogs() which finds and retains the newest txn log 
> file with starting zxid < oldest retained snapshot's highest zxid.



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


ZooKeeper-trunk-WinVS2008 - Build # 2331 - Still Failing

2016-11-17 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper-trunk-WinVS2008/2331/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 78 lines...]

ivy-retrieve:
[ivy:retrieve] :: Apache Ivy 2.4.0 - 20141213170938 :: 
http://ant.apache.org/ivy/ ::
[ivy:retrieve] :: loading settings :: file = 
f:\jenkins\jenkins-slave\workspace\ZooKeeper-trunk-WinVS2008\ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: 
org.apache.zookeeper#zookeeper;3.6.0-SNAPSHOT
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  found jline#jline;2.11 in maven2
[ivy:retrieve]  found org.eclipse.jetty#jetty-server;9.2.18.v20160721 in maven2
[ivy:retrieve]  found javax.servlet#javax.servlet-api;3.1.0 in maven2
[ivy:retrieve]  found org.eclipse.jetty#jetty-http;9.2.18.v20160721 in maven2
[ivy:retrieve]  found org.eclipse.jetty#jetty-util;9.2.18.v20160721 in maven2
[ivy:retrieve]  found org.eclipse.jetty#jetty-io;9.2.18.v20160721 in maven2
[ivy:retrieve]  found org.eclipse.jetty#jetty-servlet;9.2.18.v20160721 in maven2
[ivy:retrieve]  found org.eclipse.jetty#jetty-security;9.2.18.v20160721 in 
maven2
[ivy:retrieve]  found org.codehaus.jackson#jackson-mapper-asl;1.9.11 in maven2
[ivy:retrieve]  found org.codehaus.jackson#jackson-core-asl;1.9.11 in maven2
[ivy:retrieve]  found org.slf4j#slf4j-api;1.7.5 in maven2
[ivy:retrieve]  found org.slf4j#slf4j-log4j12;1.7.5 in maven2
[ivy:retrieve]  found commons-cli#commons-cli;1.2 in maven2
[ivy:retrieve]  found log4j#log4j;1.2.17 in maven2
[ivy:retrieve]  found io.netty#netty;3.10.5.Final in maven2
[ivy:retrieve]  found net.java.dev.javacc#javacc;5.0 in maven2
[ivy:retrieve] :: resolution report :: resolve 1018ms :: artifacts dl 28ms
-
|  |modules||   artifacts   |
|   conf   | number| search|dwnlded|evicted|| number|dwnlded|
-
|  default |   16  |   0   |   0   |   0   ||   16  |   0   |
-
[ivy:retrieve] :: retrieving :: org.apache.zookeeper#zookeeper
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  16 artifacts copied, 0 already retrieved (4635kB/66ms)

generate_jute_parser:
[mkdir] Created dir: 
f:\jenkins\jenkins-slave\workspace\ZooKeeper-trunk-WinVS2008\build\jute_compiler\org\apache\jute\compiler\generated
[ivy:artifactproperty] DEPRECATED: 'ivy.conf.file' is deprecated, use 
'ivy.settings.file' instead
[ivy:artifactproperty] :: loading settings :: file = 
f:\jenkins\jenkins-slave\workspace\ZooKeeper-trunk-WinVS2008\ivysettings.xml
 [move] Moving 1 file to 
f:\jenkins\jenkins-slave\workspace\ZooKeeper-trunk-WinVS2008\build\lib
   [javacc] Java Compiler Compiler Version 5.0 (Parser Generator)
   [javacc] (type "javacc" with no arguments for help)
   [javacc] Reading from file 
f:\jenkins\jenkins-slave\workspace\ZooKeeper-trunk-WinVS2008\src\java\main\org\apache\jute\compiler\generated\rcc.jj
 . . .
   [javacc] File "TokenMgrError.java" does not exist.  Will create one.
   [javacc] File "ParseException.java" does not exist.  Will create one.
   [javacc] File "Token.java" does not exist.  Will create one.
   [javacc] File "SimpleCharStream.java" does not exist.  Will create one.
   [javacc] Parser generated successfully.

jute:

BUILD FAILED
f:\jenkins\jenkins-slave\workspace\ZooKeeper-trunk-WinVS2008\build.xml:273: 
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre1.8.0_92"

Total time: 4 seconds
Build step 'Invoke Ant' marked build as failure
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any



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

[jira] [Commented] (ZOOKEEPER-2574) PurgeTxnLog can inadvertently delete required txn log files

2016-11-17 Thread Rakesh R (JIRA)

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

Rakesh R commented on ZOOKEEPER-2574:
-

How about keeping only one jira open and close the other one. That way, we will 
try to converge the discussions into one place. I'm OK to close any one of 
these two jira issues:-)

Could you please look at [my previous 
comment|https://issues.apache.org/jira/browse/ZOOKEEPER-2574?focusedCommentId=15662873=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15662873]
 and do necessary src & test code merge from ZK-2420. Appreciate creating a 
pull request for the same. Thanks!

> PurgeTxnLog can inadvertently delete required txn log files
> ---
>
> Key: ZOOKEEPER-2574
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2574
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: server
>Affects Versions: 3.4.7, 3.4.8, 3.5.0, 3.5.1, 3.5.2
> Environment: Zookeeper 3.4.8, standalone, and 3-server quorum
>Reporter: Abhishek Rai
>Assignee: Abhishek Rai
> Fix For: 3.4.10, 3.5.3
>
> Attachments: ZOOKEEPER-2574.2.patch, ZOOKEEPER-2574.3.patch, 
> ZOOKEEPER-2574.4.patch, ZOOKEEPER-2574.5.patch, ZOOKEEPER-2574.6.patch, 
> ZOOKEEPER-2574.patch
>
>
> As part of the fix for ZOOKEEPER-1797, the call to 
> FileTxnSnapLog.getSnapshotLogs() was removed from PurgeTxnLog.java.  As a 
> result, some old-looking but required txn log files can be deleted, resulting 
> in data corruption or loss.
> For example, consider the following:
> 1. Configuration:
> autopurge.snapRetainCount=3
> 2. Following files exist:
> log.100 spans transactions from zxid=100 till zxid=140 (inclusive)
> snapshot.110 - snapshot as of zxid=110
> snapshot.120 - snapshot as of zxid=120
> snapshot.130 - snapshot as of zxid=130
> Above scenario is possible when snapshotting has happened multiple times but 
> without accompanying log rollover, which is possible if the server was 
> running as a learner.
> 3. PurgeTxnLog retains all snapshots but deletes log.100 because its zxid is 
> older than the zxid of the oldest snapshot (110).  This results in loss of 
> transactions in the range 131-140.
> Before the fix for ZOOKEEPER-1797, this was avoided by the call to 
> FileTxnSnapLog.getSnapshotLogs() which finds and retains the newest txn log 
> file with starting zxid < oldest retained snapshot's highest zxid.



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


[GitHub] zookeeper issue #98: ZOOKEEPER-2479

2016-11-17 Thread rakeshadr
Github user rakeshadr commented on the issue:

https://github.com/apache/zookeeper/pull/98
  
@eribeiro ,, appreciate your feedback. Thanks!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[jira] [Commented] (ZOOKEEPER-2479) Add 'electionTimeTaken' value in LeaderMXBean and FollowerMXBean

2016-11-17 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on ZOOKEEPER-2479:
---

Github user rakeshadr commented on the issue:

https://github.com/apache/zookeeper/pull/98
  
@eribeiro ,, appreciate your feedback. Thanks!


> Add 'electionTimeTaken' value in LeaderMXBean and FollowerMXBean
> 
>
> Key: ZOOKEEPER-2479
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2479
> Project: ZooKeeper
>  Issue Type: Improvement
>  Components: quorum
>Reporter: Rakesh R
>Assignee: Rakesh R
> Fix For: 3.4.10, 3.5.3, 3.6.0
>
> Attachments: ZOOKEEPER-2479.patch, ZOOKEEPER-2479.patch, 
> ZOOKEEPER-2479.patch, ZOOKEEPER-2479.patch, ZOOKEEPER-2479.patch, 
> ZOOKEEPER-2479.patch
>
>
> The idea of this jira is to expose {{time taken}} for the leader election via 
> jmx Leader, Follower beans.



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


[GitHub] zookeeper pull request #107: Branch 3.3

2016-11-17 Thread benjiazhen
GitHub user benjiazhen opened a pull request:

https://github.com/apache/zookeeper/pull/107

Branch 3.3



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/apache/zookeeper branch-3.3

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/zookeeper/pull/107.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #107


commit 4e7af5462fe1af5da4880898df3329742f21b9e0
Author: Patrick D. Hunt 
Date:   2010-03-19T18:06:06Z

Branching for 3.3 releases

git-svn-id: 
https://svn.apache.org/repos/asf/hadoop/zookeeper/branches/branch-3.3@925358 
13f79535-47bb-0310-9956-ffa450edef68

commit e9d396d85a2b26c853bcd3f02b64cc420f7f4a4d
Author: Patrick D. Hunt 
Date:   2010-03-19T18:35:20Z

Preparing for release 3.3.0

git-svn-id: 
https://svn.apache.org/repos/asf/hadoop/zookeeper/branches/branch-3.3@925372 
13f79535-47bb-0310-9956-ffa450edef68

commit 0844ebe2b9635dc748a76cd5f78727aa29e4a14d
Author: Mahadev Konar 
Date:   2010-04-08T18:32:37Z

ZOOKEEPER-735. cppunit test testipv6 assumes that the machine is ipv6 
enabled. (mahadev)

git-svn-id: 
https://svn.apache.org/repos/asf/hadoop/zookeeper/branches/branch-3.3@932053 
13f79535-47bb-0310-9956-ffa450edef68

commit 9899753147970dcf8f05eaa9be2a95b992f8ba72
Author: Patrick D. Hunt 
Date:   2010-04-12T06:17:26Z

ZOOKEEPER-720. Use zookeeper-{version}-sources.jar instead of 
zookeeper-{version}-src.jar to publish sources in the Maven repository

git-svn-id: 
https://svn.apache.org/repos/asf/hadoop/zookeeper/branches/branch-3.3@933101 
13f79535-47bb-0310-9956-ffa450edef68

commit ee9490444d02431a62e04982908d5a08ced9ec0f
Author: Patrick D. Hunt 
Date:   2010-04-12T06:30:46Z

ZOOKEEPER-722. zkServer.sh uses sh's builtin echo on BSD, behaves 
incorrectly.

git-svn-id: 
https://svn.apache.org/repos/asf/hadoop/zookeeper/branches/branch-3.3@933110 
13f79535-47bb-0310-9956-ffa450edef68

commit 0196b6ff961665d4061cb14d6403d5aebddfff6f
Author: Patrick D. Hunt 
Date:   2010-04-22T05:40:01Z

ZOOKEEPER-741. root level create on REST proxy fails

git-svn-id: 
https://svn.apache.org/repos/asf/hadoop/zookeeper/branches/branch-3.3@936619 
13f79535-47bb-0310-9956-ffa450edef68

commit 4d4785632fd42d1f39a072bfcf69c9c1ace3bbc3
Author: Patrick D. Hunt 
Date:   2010-04-22T06:05:15Z

ZOOKEEPER-631. zkpython's C code could do with a style clean-up

git-svn-id: 
https://svn.apache.org/repos/asf/hadoop/zookeeper/branches/branch-3.3@936623 
13f79535-47bb-0310-9956-ffa450edef68

commit cff0c0c1d2cf79283e4b5fa432072588c52df0a9
Author: Patrick D. Hunt 
Date:   2010-04-26T18:57:08Z

ZOOKEEPER-738. zookeeper.jute.h fails to compile with -pedantic

git-svn-id: 
https://svn.apache.org/repos/asf/hadoop/zookeeper/branches/branch-3.3@938194 
13f79535-47bb-0310-9956-ffa450edef68

commit 59a3cc5c2bcd8bdd790e091471695ab19b42ba24
Author: Patrick D. Hunt 
Date:   2010-04-26T20:01:15Z

ZOOKEEPER-734. QuorumPeerTestBase.java and ZooKeeperServerMainTest.java do 
not handle windows path correctly

git-svn-id: 
https://svn.apache.org/repos/asf/hadoop/zookeeper/branches/branch-3.3@938214 
13f79535-47bb-0310-9956-ffa450edef68

commit 142e7d3c97fd69880328ff54dab9549f230a28e0
Author: Patrick D. Hunt 
Date:   2010-04-27T22:46:27Z

ZOOKEEPER-754. numerous misspellings "succesfully"

git-svn-id: 
https://svn.apache.org/repos/asf/hadoop/zookeeper/branches/branch-3.3@938710 
13f79535-47bb-0310-9956-ffa450edef68

commit 714a4b42b64b65cd7ba12324bd6498b5edaf91a7
Author: Henry Robinson 
Date:   2010-04-29T02:24:43Z

ZOOKEEPER-749 (OSGi metadata not included in binary only jar) and 
ZOOKEEPER-750 (move maven artifacts into dist-maven subdir of the release 
(package target))

git-svn-id: 
https://svn.apache.org/repos/asf/hadoop/zookeeper/branches/branch-3.3@939181 
13f79535-47bb-0310-9956-ffa450edef68

commit 9cdf11c1ecec645cae9a5db85fa30d562d47f644
Author: Henry Robinson 
Date:   2010-04-30T23:02:52Z

ZOOKEEPER-758. zkpython segfaults on invalid acl with missing key

git-svn-id: 
https://svn.apache.org/repos/asf/hadoop/zookeeper/branches/branch-3.3@939869 
13f79535-47bb-0310-9956-ffa450edef68

commit 01d8f73bc39935e9796964c51e0ec456bc11a73a
Author: Mahadev Konar 
Date:   2010-05-04T21:49:50Z

ZOOKEEPER-737. some 4 letter words may fail with netcat (nc) (mahadev)

git-svn-id: 
https://svn.apache.org/repos/asf/hadoop/zookeeper/branches/branch-3.3@941061 
13f79535-47bb-0310-9956-ffa450edef68

commit 16c31c9a4e92c5ee89895b04e93be32d447be0c5

Failed: ZOOKEEPER- PreCommit Build #74

2016-11-17 Thread Apache Jenkins Server
Build: https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/74/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 596 lines...]
warning: Cannot merge binary files: docs/releasenotes.pdf (HEAD vs. 
ed0e2170ecaa5fd2835591453934890936298f4a)
warning: Cannot merge binary files: docs/recipes.pdf (HEAD vs. 
ed0e2170ecaa5fd2835591453934890936298f4a)
warning: Cannot merge binary files: docs/linkmap.pdf (HEAD vs. 
ed0e2170ecaa5fd2835591453934890936298f4a)
warning: Cannot merge binary files: docs/javaExample.pdf (HEAD vs. 
ed0e2170ecaa5fd2835591453934890936298f4a)
warning: Cannot merge binary files: docs/index.pdf (HEAD vs. 
ed0e2170ecaa5fd2835591453934890936298f4a)
warning: Cannot merge binary files: docs/bookkeeperStream.pdf (HEAD vs. 
ed0e2170ecaa5fd2835591453934890936298f4a)
warning: Cannot merge binary files: docs/bookkeeperStarted.pdf (HEAD vs. 
ed0e2170ecaa5fd2835591453934890936298f4a)
warning: Cannot merge binary files: docs/bookkeeperProgrammer.pdf (HEAD vs. 
ed0e2170ecaa5fd2835591453934890936298f4a)
warning: Cannot merge binary files: docs/bookkeeperOverview.pdf (HEAD vs. 
ed0e2170ecaa5fd2835591453934890936298f4a)
warning: Cannot merge binary files: docs/bookkeeperConfig.pdf (HEAD vs. 
ed0e2170ecaa5fd2835591453934890936298f4a)

at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1723)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1699)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1695)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1317)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$3.execute(CliGitAPIImpl.java:587)
at 
org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.merge(AbstractGitAPIImpl.java:87)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.merge(CliGitAPIImpl.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:884)
at 
hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:859)
at 
hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:818)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:332)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at ..remote call to H7(Native Method)
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
at hudson.remoting.Channel.call(Channel.java:781)
at 
hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:249)
at com.sun.proxy.$Proxy151.merge(Unknown Source)
at 
org.jenkinsci.plugins.gitclient.RemoteGitImpl.merge(RemoteGitImpl.java:438)
at 
com.cloudbees.jenkins.plugins.git.vmerge.BuildChooserImpl.getCandidateRevisions(BuildChooserImpl.java:107)
at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:984)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1087)
at hudson.scm.SCM.checkout(SCM.java:485)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1741)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Archiving artifacts
Recording test results
ERROR: Step ?Publish JUnit test result report? failed: No test report files 
were found. Configuration error?
[description-setter] Could not determine description.
Putting comment on the pull request
Email was triggered for: Failure - Any
Sending email for 

[jira] [Commented] (ZOOKEEPER-761) Remove *synchronous* calls from the *single-threaded* C clieant API, since they are documented not to work

2016-11-17 Thread Flavio Junqueira (JIRA)

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

Flavio Junqueira commented on ZOOKEEPER-761:


[~breed] do we need the fix version to be 3.4.10 as well? the fix version 
currently targets only the 3.5 and master branches.

> Remove *synchronous* calls from the *single-threaded* C clieant API, since 
> they are documented not to work
> --
>
> Key: ZOOKEEPER-761
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-761
> Project: ZooKeeper
>  Issue Type: Improvement
>  Components: c client
>Affects Versions: 3.1.1, 3.2.2
> Environment: RHEL 4u8 (Linux).  The issue is not OS-specific though.
>Reporter: Jozef Hatala
>Assignee: Benjamin Reed
>Priority: Minor
> Fix For: 3.5.3, 3.6.0
>
> Attachments: fix-sync-apis-in-st-adaptor.patch, 
> fix-sync-apis-in-st-adaptor.v2.patch
>
>
> Since the synchronous calls are 
> [known|http://hadoop.apache.org/zookeeper/docs/current/zookeeperProgrammers.html#Using+the+C+Client]
>  to be unimplemented in the single threaded version of the client library 
> libzookeeper_st.so, I believe that it would be helpful towards users of the 
> library if that information was also obvious from the header file.
> Anecdotally more than one of us here made the mistake of starting by using 
> the synchronous calls with the single-threaded library, and we found 
> ourselves debugging it.  An early warning would have been greatly appreciated.
> 1. Could you please add warnings to the doxygen blocks of all synchronous 
> calls saying that they are not available in the single-threaded API.  This 
> cannot be safely done with {{#ifdef THREADED}}, obviously, because the same 
> header file is included whichever client library implementation one is 
> compiling for.
> 2. Could you please bracket the implementation of all synchronous calls in 
> zookeeper.c with {{#ifdef THREADED}} and {{#endif}}, so that those symbols 
> are not present in libzookeeper_st.so?



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


[GitHub] zookeeper issue #90: ZOOKEEPER-761: Remove *synchronous* calls from the *sin...

2016-11-17 Thread fpj
Github user fpj commented on the issue:

https://github.com/apache/zookeeper/pull/90
  
It looks good, I just left a comment about creating a jira before we 
forget. Could you do it before we close this issue, please @breed ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


ZooKeeper_branch34 - Build # 1723 - Still Failing

2016-11-17 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper_branch34/1723/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 1471 lines...]
[mkdir] Created dir: 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34/build/zookeeper-3.4.10-SNAPSHOT/dist-maven
 [copy] Copying 1 file to 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34/build/zookeeper-3.4.10-SNAPSHOT/dist-maven
 [copy] Copying 2 files to 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34/build/zookeeper-3.4.10-SNAPSHOT/dist-maven
 [copy] Copying 1 file to 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34/build/zookeeper-3.4.10-SNAPSHOT/dist-maven
 [copy] Copying 8 files to 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34/build/zookeeper-3.4.10-SNAPSHOT/bin
 [copy] Copying 3 files to 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34/build/zookeeper-3.4.10-SNAPSHOT/conf
 [copy] Copying 318 files to 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34/build/zookeeper-3.4.10-SNAPSHOT/docs
 [copy] Copied 22 empty directories to 3 empty directories under 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34/build/zookeeper-3.4.10-SNAPSHOT/docs
 [copy] Copying 8 files to 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34/build/zookeeper-3.4.10-SNAPSHOT
 [copy] Copying 918 files to 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34/build/zookeeper-3.4.10-SNAPSHOT/src
 [copy] Copied 238 empty directories to 1 empty directory under 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34/build/zookeeper-3.4.10-SNAPSHOT/src

tar:
  [tar] Building tar: 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34/build/zookeeper-3.4.10-SNAPSHOT.tar.gz

check-for-findbugs:

findbugs:

BUILD FAILED
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34/build.xml:1481: 
java.lang.UnsupportedClassVersionError: 
edu/umd/cs/findbugs/anttask/FindBugsTask : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at 
org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1149)
at 
org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1320)
at 
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
at 
org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1337)
at 
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1089)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:579)
at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:237)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:854)
at org.apache.tools.ant.Main.startAnt(Main.java:236)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)

Total time: 1 minute 3 seconds
mv: cannot stat ‘build/test/findbugs’: No such file or directory
Build Failed
Build step 'Execute shell' marked build as failure
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: No test report files 
were found. Configuration error?
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any



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

ZooKeeper-trunk - Build # 3161 - Still Failing

2016-11-17 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper-trunk/3161/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 484890 lines...]
[junit] 2016-11-17 23:31:19,154 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@513] - EventThread shut down for 
session: 0x10108594c5b
[junit] 2016-11-17 23:31:19,154 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@82] - Memory used 170793
[junit] 2016-11-17 23:31:19,154 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@87] - Number of threads 1643
[junit] 2016-11-17 23:31:19,154 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@102] - FINISHED TEST METHOD 
testWatcherAutoResetWithLocal
[junit] 2016-11-17 23:31:19,154 [myid:] - INFO  [main:ClientBase@543] - 
tearDown starting
[junit] 2016-11-17 23:31:19,154 [myid:] - INFO  [main:ClientBase@513] - 
STOPPING server
[junit] 2016-11-17 23:31:19,155 [myid:] - INFO  
[main:NettyServerCnxnFactory@464] - shutdown called 0.0.0.0/0.0.0.0:24931
[junit] 2016-11-17 23:31:19,162 [myid:] - INFO  [main:ZooKeeperServer@531] 
- shutting down
[junit] 2016-11-17 23:31:19,162 [myid:] - ERROR [main:ZooKeeperServer@503] 
- ZKShutdownHandler is not registered, so ZooKeeper server won't take any 
action on ERROR or SHUTDOWN server state changes
[junit] 2016-11-17 23:31:19,162 [myid:] - INFO  
[main:SessionTrackerImpl@232] - Shutting down
[junit] 2016-11-17 23:31:19,163 [myid:] - INFO  
[main:PrepRequestProcessor@1009] - Shutting down
[junit] 2016-11-17 23:31:19,163 [myid:] - INFO  
[main:SyncRequestProcessor@191] - Shutting down
[junit] 2016-11-17 23:31:19,164 [myid:] - INFO  
[SyncThread:0:SyncRequestProcessor@169] - SyncRequestProcessor exited!
[junit] 2016-11-17 23:31:19,164 [myid:] - INFO  
[main:FinalRequestProcessor@481] - shutdown of request processor complete
[junit] 2016-11-17 23:31:19,163 [myid:] - INFO  [ProcessThread(sid:0 
cport:24931)::PrepRequestProcessor@157] - PrepRequestProcessor exited loop!
[junit] 2016-11-17 23:31:19,164 [myid:] - INFO  [main:MBeanRegistry@128] - 
Unregister MBean 
[org.apache.ZooKeeperService:name0=StandaloneServer_port24931,name1=InMemoryDataTree]
[junit] 2016-11-17 23:31:19,164 [myid:] - INFO  [main:MBeanRegistry@128] - 
Unregister MBean [org.apache.ZooKeeperService:name0=StandaloneServer_port24931]
[junit] 2016-11-17 23:31:19,165 [myid:] - INFO  
[main:FourLetterWordMain@85] - connecting to 127.0.0.1 24931
[junit] 2016-11-17 23:31:19,165 [myid:] - INFO  [main:JMXEnv@146] - 
ensureOnly:[]
[junit] 2016-11-17 23:31:19,171 [myid:] - INFO  [main:ClientBase@568] - 
fdcount after test is: 4825 at start it was 4827
[junit] 2016-11-17 23:31:19,171 [myid:] - INFO  [main:ZKTestCase$1@65] - 
SUCCEEDED testWatcherAutoResetWithLocal
[junit] 2016-11-17 23:31:19,171 [myid:] - INFO  [main:ZKTestCase$1@60] - 
FINISHED testWatcherAutoResetWithLocal
[junit] Tests run: 101, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
575.922 sec, Thread: 6, Class: org.apache.zookeeper.test.NioNettySuiteTest
[junit] 2016-11-17 23:31:19,225 [myid:127.0.0.1:24814] - INFO  
[main-SendThread(127.0.0.1:24814):ClientCnxn$SendThread@1113] - Opening socket 
connection to server 127.0.0.1/127.0.0.1:24814. Will not attempt to 
authenticate using SASL (unknown error)
[junit] 2016-11-17 23:31:19,225 [myid:127.0.0.1:24814] - WARN  
[main-SendThread(127.0.0.1:24814):ClientCnxn$SendThread@1235] - Session 
0x3010855d2f0 for server 127.0.0.1/127.0.0.1:24814, unexpected error, 
closing socket connection and attempting reconnect
[junit] java.net.ConnectException: Connection refused
[junit] at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
[junit] at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:744)
[junit] at 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:357)
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1214)
[junit] 2016-11-17 23:31:19,400 [myid:127.0.0.1:24808] - INFO  
[main-SendThread(127.0.0.1:24808):ClientCnxn$SendThread@1113] - Opening socket 
connection to server 127.0.0.1/127.0.0.1:24808. Will not attempt to 
authenticate using SASL (unknown error)
[junit] 2016-11-17 23:31:19,401 [myid:127.0.0.1:24808] - WARN  
[main-SendThread(127.0.0.1:24808):ClientCnxn$SendThread@1235] - Session 
0x1010855d26f for server 127.0.0.1/127.0.0.1:24808, unexpected error, 
closing socket connection and attempting reconnect
[junit] java.net.ConnectException: Connection refused
[junit] at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
[junit] at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:744)
[junit] at 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:357)
[junit] 

[jira] [Assigned] (ZOOKEEPER-1634) A new feature proposal to ZooKeeper: authentication enforcement

2016-11-17 Thread Michael Han (JIRA)

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

Michael Han reassigned ZOOKEEPER-1634:
--

Assignee: Michael Han

> A new feature proposal to ZooKeeper: authentication enforcement
> ---
>
> Key: ZOOKEEPER-1634
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1634
> Project: ZooKeeper
>  Issue Type: New Feature
>  Components: security, server
>Affects Versions: 3.4.5
>Reporter: Jaewoong Choi
>Assignee: Michael Han
> Fix For: 3.5.3, 3.6.0
>
> Attachments: 
> zookeeper_3.4.5_patch_for_authentication_enforcement.patch
>
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>
> Up to the version of 3.4.5, ZooKeeperServer doesn't force the authentication 
> if the client doesn't give any auth-info through ZooKeeper#addAuthInfo method 
> invocation.  Hence, every znode should have at least one ACL assigned 
> otherwise any unauthenticated client can do anything on it.
> The current authentication/authorization mechanism of ZooKeeper described 
> above has several points at issue:
> 1. At security standpoint, a maleficent client can access a znode which 
> doesn't have any proper authorization access control set.
> 2. At runtime performance standpoint, authorization for every znode to every 
> operation is unnecessarily but always evaluated against the client who 
> bypassed the authentication phase.
> In other words, the current mechanism doesn't address a certain requirement 
> at below:
> "We want to protect a ZK server by enforcing a simple authentication to every 
> client no matter which znode it is trying to access.  Every connection (or 
> operation) from the client won't be established but rejected if it doesn't 
> come with a valid authentication information.  As we don't have any other 
> distinction between znodes in term of authorization, we don't want any ACLs 
> on any znode."
> To address the issues mentioned above, we propose a feature called 
> "authentication enforcement" to the ZK source.  The idea is roughly but 
> clearly described in a form of patch in the attached file 
> (zookeeper_3.4.5_patch_for_authentication_enforcement.patch): which makes 
> ZooKeeperServer enforce the authentication with the given 2 configurations: 
> authenticationEnforced (boolean) and enforcedAuthenticationScheme (string) 
> against every operation coming through ZooKeeperServer#processPacket method 
> except for OpCode.auth operation.  The repository base of the patch is 
> "http://svn.apache.org/repos/asf/zookeeper/tags/release-3.4.5/;



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


ZooKeeper_branch34_jdk8 - Build # 772 - Failure

2016-11-17 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper_branch34_jdk8/772/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 235248 lines...]
[junit] 2016-11-17 23:15:54,104 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxnFactory@219] - 
NIOServerCnxn factory exited run method
[junit] 2016-11-17 23:15:54,105 [myid:] - INFO  [main:ZooKeeperServer@497] 
- shutting down
[junit] 2016-11-17 23:15:54,105 [myid:] - ERROR [main:ZooKeeperServer@472] 
- ZKShutdownHandler is not registered, so ZooKeeper server won't take any 
action on ERROR or SHUTDOWN server state changes
[junit] 2016-11-17 23:15:54,105 [myid:] - INFO  
[main:SessionTrackerImpl@225] - Shutting down
[junit] 2016-11-17 23:15:54,105 [myid:] - INFO  
[main:PrepRequestProcessor@765] - Shutting down
[junit] 2016-11-17 23:15:54,105 [myid:] - INFO  
[main:SyncRequestProcessor@208] - Shutting down
[junit] 2016-11-17 23:15:54,106 [myid:] - INFO  [ProcessThread(sid:0 
cport:11221)::PrepRequestProcessor@143] - PrepRequestProcessor exited loop!
[junit] 2016-11-17 23:15:54,106 [myid:] - INFO  
[SyncThread:0:SyncRequestProcessor@186] - SyncRequestProcessor exited!
[junit] 2016-11-17 23:15:54,107 [myid:] - INFO  
[main:FinalRequestProcessor@402] - shutdown of request processor complete
[junit] 2016-11-17 23:15:54,107 [myid:] - INFO  
[main:FourLetterWordMain@62] - connecting to 127.0.0.1 11221
[junit] 2016-11-17 23:15:54,108 [myid:] - INFO  [main:JMXEnv@146] - 
ensureOnly:[]
[junit] 2016-11-17 23:15:54,110 [myid:] - INFO  [main:ClientBase@445] - 
STARTING server
[junit] 2016-11-17 23:15:54,110 [myid:] - INFO  [main:ClientBase@366] - 
CREATING server instance 127.0.0.1:11221
[junit] 2016-11-17 23:15:54,110 [myid:] - INFO  
[main:NIOServerCnxnFactory@89] - binding to port 0.0.0.0/0.0.0.0:11221
[junit] 2016-11-17 23:15:54,111 [myid:] - INFO  [main:ClientBase@341] - 
STARTING server instance 127.0.0.1:11221
[junit] 2016-11-17 23:15:54,111 [myid:] - INFO  [main:ZooKeeperServer@173] 
- Created server with tickTime 3000 minSessionTimeout 6000 maxSessionTimeout 
6 datadir 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34_jdk8/build/test/tmp/test8802110249445818992.junit.dir/version-2
 snapdir 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34_jdk8/build/test/tmp/test8802110249445818992.junit.dir/version-2
[junit] 2016-11-17 23:15:54,122 [myid:] - ERROR [main:ZooKeeperServer@472] 
- ZKShutdownHandler is not registered, so ZooKeeper server won't take any 
action on ERROR or SHUTDOWN server state changes
[junit] 2016-11-17 23:15:54,122 [myid:] - INFO  
[main:FourLetterWordMain@62] - connecting to 127.0.0.1 11221
[junit] 2016-11-17 23:15:54,128 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxnFactory@192] - 
Accepted socket connection from /127.0.0.1:53524
[junit] 2016-11-17 23:15:54,129 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxn@827] - Processing 
stat command from /127.0.0.1:53524
[junit] 2016-11-17 23:15:54,161 [myid:] - INFO  
[Thread-4:NIOServerCnxn$StatCommand@663] - Stat command output
[junit] 2016-11-17 23:15:54,161 [myid:] - INFO  
[Thread-4:NIOServerCnxn@1008] - Closed socket connection for client 
/127.0.0.1:53524 (no session established for client)
[junit] 2016-11-17 23:15:54,162 [myid:] - INFO  [main:JMXEnv@229] - 
ensureParent:[InMemoryDataTree, StandaloneServer_port]
[junit] 2016-11-17 23:15:54,164 [myid:] - INFO  [main:JMXEnv@246] - 
expect:InMemoryDataTree
[junit] 2016-11-17 23:15:54,164 [myid:] - INFO  [main:JMXEnv@250] - 
found:InMemoryDataTree 
org.apache.ZooKeeperService:name0=StandaloneServer_port11221,name1=InMemoryDataTree
[junit] 2016-11-17 23:15:54,164 [myid:] - INFO  [main:JMXEnv@246] - 
expect:StandaloneServer_port
[junit] 2016-11-17 23:15:54,164 [myid:] - INFO  [main:JMXEnv@250] - 
found:StandaloneServer_port 
org.apache.ZooKeeperService:name0=StandaloneServer_port11221
[junit] 2016-11-17 23:15:54,165 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@58] - Memory used 33587
[junit] 2016-11-17 23:15:54,165 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@63] - Number of threads 21
[junit] 2016-11-17 23:15:54,165 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@78] - FINISHED TEST METHOD testQuota
[junit] 2016-11-17 23:15:54,165 [myid:] - INFO  [main:ClientBase@522] - 
tearDown starting
[junit] 2016-11-17 23:15:54,181 [myid:] - INFO  [main:ZooKeeper@684] - 
Session: 0x158749332b6 closed
[junit] 2016-11-17 23:15:54,181 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@519] - EventThread shut down for 
session: 0x158749332b6
[junit] 2016-11-17 23:15:54,181 [myid:] - INFO  [main:ClientBase@492] - 
STOPPING server
[junit] 2016-11-17 23:15:54,181 

ZooKeeper-trunk-openjdk7 - Build # 1244 - Still Failing

2016-11-17 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper-trunk-openjdk7/1244/

###
## LAST 60 LINES OF THE CONSOLE 
###
Started by timer
[EnvInject] - Loading node environment variables.
Building remotely on H17 (ubuntu) in workspace 
/home/jenkins/jenkins-slave/workspace/ZooKeeper-trunk-openjdk7
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url git://git.apache.org/zookeeper.git # timeout=10
Cleaning workspace
 > git rev-parse --verify HEAD # timeout=10
Resetting working tree
 > git reset --hard # timeout=10
 > git clean -fdx # timeout=10
Fetching upstream changes from git://git.apache.org/zookeeper.git
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress 
 > git://git.apache.org/zookeeper.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 179c8db6df20beccd64fac2c99ca77dbe8a3242c 
(refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 179c8db6df20beccd64fac2c99ca77dbe8a3242c
 > git rev-list 179c8db6df20beccd64fac2c99ca77dbe8a3242c # timeout=10
No emails were triggered.
[ZooKeeper-trunk-openjdk7] $ /home/jenkins/tools/ant/latest/bin/ant 
-Dtest.output=yes -Dtest.junit.threads=8 -Dtest.junit.output.format=xml 
-Djavac.target=1.7 clean test-core-java
Error: JAVA_HOME is not defined correctly.
  We cannot execute /usr/lib/jvm/java-7-openjdk-amd64//bin/java
Build step 'Invoke Ant' marked build as failure
Recording test results
ERROR: Step ?Publish JUnit test result report? failed: No test report files 
were found. Configuration error?
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any



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

ZooKeeper_branch35_solaris - Build # 320 - Still Failing

2016-11-17 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper_branch35_solaris/320/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 463091 lines...]
[junit] 2016-11-17 17:17:24,269 [myid:] - INFO  [main:ClientBase@386] - 
CREATING server instance 127.0.0.1:11222
[junit] 2016-11-17 17:17:24,269 [myid:] - INFO  
[main:NIOServerCnxnFactory@673] - Configuring NIO connection handler with 10s 
sessionless connection timeout, 2 selector thread(s), 16 worker threads, and 64 
kB direct buffers.
[junit] 2016-11-17 17:17:24,269 [myid:] - INFO  
[main:NIOServerCnxnFactory@686] - binding to port 0.0.0.0/0.0.0.0:11222
[junit] 2016-11-17 17:17:24,270 [myid:] - INFO  [main:ClientBase@361] - 
STARTING server instance 127.0.0.1:11222
[junit] 2016-11-17 17:17:24,271 [myid:] - INFO  [main:ZooKeeperServer@890] 
- minSessionTimeout set to 6000
[junit] 2016-11-17 17:17:24,271 [myid:] - INFO  [main:ZooKeeperServer@899] 
- maxSessionTimeout set to 6
[junit] 2016-11-17 17:17:24,271 [myid:] - INFO  [main:ZooKeeperServer@159] 
- Created server with tickTime 3000 minSessionTimeout 6000 maxSessionTimeout 
6 datadir 
/zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/ZooKeeper_branch35_solaris/build/test/tmp/test603797560302127856.junit.dir/version-2
 snapdir 
/zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/ZooKeeper_branch35_solaris/build/test/tmp/test603797560302127856.junit.dir/version-2
[junit] 2016-11-17 17:17:24,272 [myid:] - INFO  [main:FileSnap@83] - 
Reading snapshot 
/zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/ZooKeeper_branch35_solaris/build/test/tmp/test603797560302127856.junit.dir/version-2/snapshot.b
[junit] 2016-11-17 17:17:24,274 [myid:] - INFO  [main:FileTxnSnapLog@306] - 
Snapshotting: 0xb to 
/zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/ZooKeeper_branch35_solaris/build/test/tmp/test603797560302127856.junit.dir/version-2/snapshot.b
[junit] 2016-11-17 17:17:24,275 [myid:] - ERROR [main:ZooKeeperServer@502] 
- ZKShutdownHandler is not registered, so ZooKeeper server won't take any 
action on ERROR or SHUTDOWN server state changes
[junit] 2016-11-17 17:17:24,275 [myid:] - INFO  
[main:FourLetterWordMain@85] - connecting to 127.0.0.1 11222
[junit] 2016-11-17 17:17:24,276 [myid:] - INFO  
[NIOServerCxnFactory.AcceptThread:0.0.0.0/0.0.0.0:11222:NIOServerCnxnFactory$AcceptThread@296]
 - Accepted socket connection from /127.0.0.1:55229
[junit] 2016-11-17 17:17:24,276 [myid:] - INFO  
[NIOWorkerThread-1:NIOServerCnxn@485] - Processing stat command from 
/127.0.0.1:55229
[junit] 2016-11-17 17:17:24,277 [myid:] - INFO  
[NIOWorkerThread-1:StatCommand@49] - Stat command output
[junit] 2016-11-17 17:17:24,277 [myid:] - INFO  
[NIOWorkerThread-1:NIOServerCnxn@607] - Closed socket connection for client 
/127.0.0.1:55229 (no session established for client)
[junit] 2016-11-17 17:17:24,277 [myid:] - INFO  [main:JMXEnv@228] - 
ensureParent:[InMemoryDataTree, StandaloneServer_port]
[junit] 2016-11-17 17:17:24,279 [myid:] - INFO  [main:JMXEnv@245] - 
expect:InMemoryDataTree
[junit] 2016-11-17 17:17:24,279 [myid:] - INFO  [main:JMXEnv@249] - 
found:InMemoryDataTree 
org.apache.ZooKeeperService:name0=StandaloneServer_port11222,name1=InMemoryDataTree
[junit] 2016-11-17 17:17:24,279 [myid:] - INFO  [main:JMXEnv@245] - 
expect:StandaloneServer_port
[junit] 2016-11-17 17:17:24,279 [myid:] - INFO  [main:JMXEnv@249] - 
found:StandaloneServer_port 
org.apache.ZooKeeperService:name0=StandaloneServer_port11222
[junit] 2016-11-17 17:17:24,280 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@82] - Memory used 17915
[junit] 2016-11-17 17:17:24,280 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@87] - Number of threads 23
[junit] 2016-11-17 17:17:24,280 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@102] - FINISHED TEST METHOD 
testQuota
[junit] 2016-11-17 17:17:24,280 [myid:] - INFO  [main:ClientBase@543] - 
tearDown starting
[junit] 2016-11-17 17:17:24,282 [myid:] - INFO  [main:ZooKeeper@1311] - 
Session: 0x124f0455a75 closed
[junit] 2016-11-17 17:17:24,282 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@513] - EventThread shut down for 
session: 0x124f0455a75
[junit] 2016-11-17 17:17:24,282 [myid:] - INFO  [main:ClientBase@513] - 
STOPPING server
[junit] 2016-11-17 17:17:24,283 [myid:] - INFO  
[NIOServerCxnFactory.AcceptThread:0.0.0.0/0.0.0.0:11222:NIOServerCnxnFactory$AcceptThread@219]
 - accept thread exitted run method
[junit] 2016-11-17 17:17:24,283 [myid:] - INFO  
[NIOServerCxnFactory.SelectorThread-0:NIOServerCnxnFactory$SelectorThread@420] 
- selector thread exitted run method
[junit] 2016-11-17 17:17:24,283 [myid:] - INFO  

[jira] [Commented] (ZOOKEEPER-1525) Plumb ZooKeeperServer object into auth plugins

2016-11-17 Thread Jordan Zimmerman (JIRA)

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

Jordan Zimmerman commented on ZOOKEEPER-1525:
-

Wow - I just checked. It may not be worth it to merge into 3.5.3. So, I'll 
change it to 3.6.0. Hopefully we don't have to wait a long time for 3.6.0?


> Plumb ZooKeeperServer object into auth plugins
> --
>
> Key: ZOOKEEPER-1525
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1525
> Project: ZooKeeper
>  Issue Type: Improvement
>Affects Versions: 3.5.0
>Reporter: Warren Turkal
>Assignee: Jordan Zimmerman
> Fix For: 3.5.3, 3.6.0
>
> Attachments: ZOOKEEPER-1525.patch, ZOOKEEPER-1525.patch, 
> ZOOKEEPER-1525.patch, ZOOKEEPER-1525.patch, ZOOKEEPER-1525.patch, 
> ZOOKEEPER-1525.patch, ZOOKEEPER-1525.patch, ZOOKEEPER-1525.patch, 
> ZOOKEEPER-1525.patch, ZOOKEEPER-1525.patch, ZOOKEEPER-1525.patch, 
> ZOOKEEPER-1525.patch
>
>
> I want to plumb the ZooKeeperServer object into the auth plugins so that I 
> can store authentication data in zookeeper itself. With access to the 
> ZooKeeperServer object, I also have access to the ZKDatabase and can look up 
> entries in the local copy of the zookeeper data.
> In order to implement this, I make sure that a ZooKeeperServer instance is 
> passed in to the ProviderRegistry.initialize() method. Then initialize() will 
> try to find a constructor for the AuthenticationProvider that takes a 
> ZooKeeperServer instance. If the constructor is found, it will be used. 
> Otherwise, initialize() will look for a constructor that takes no arguments 
> and use that instead.



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


Re: Apache ZooKeeper Meetup - draft Community Update

2016-11-17 Thread Patrick Hunt
Thanks Rakesh! If anyone has given a talk they would like me to highlight
please let me know. Happy to include a link in the preso.

Regards,

Patrick


On Wed, Nov 16, 2016 at 7:38 PM, Rakesh Radhakrishnan 
wrote:

> LGTM. Just a comment -
>
> I'm not sure about ZK talk/presentations delivered in any of the
> conferences (ApacheCon or any other event) in this year. Probably can
> capture those details, if any.
>
> Thanks,
> Rakesh
>
> On Thu, Nov 17, 2016 at 3:50 AM, Patrick Hunt  wrote:
>
>> Hi folks. Ben asked me to give a quick 5-10 minute overview at the meetup
>> tomorrow giving insight into progress over the last year. Please see the
>> linked slides that I put together. If you have any comments or thoughts
>> wrt
>> things that should be highlighted please respond to me directly. I tried
>> to
>> review jira/etc... but I'm sure I missed some important changes. Thanks!
>>
>> https://docs.google.com/presentation/d/1aElXcVPNng60BEpRV6qj
>> 3j6fFjScK3xSj8_e02e-lFI
>>
>> Patrick
>>
>
>


[jira] [Updated] (ZOOKEEPER-2633) Build failure in contrib/zkfuse with gcc 6.x

2016-11-17 Thread Raghavendra Prabhu (JIRA)

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

Raghavendra Prabhu updated ZOOKEEPER-2633:
--
Description: 
The build in contrib/zkfuse fails with

{noformat}

make
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh 
/home/raghu/zookeeper/src/contrib/zkfuse/missing autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
make[1]: Entering directory '/home/raghu/zookeeper/src/contrib/zkfuse'
Making all in src
make[2]: Entering directory '/home/raghu/zookeeper/src/contrib/zkfuse/src'
g++ -DHAVE_CONFIG_H -I. -I..
-I/home/raghu/zookeeper/src/contrib/zkfuse/../../c/include 
-I/home/raghu/zookeeper/src/contrib/zkfuse/../../c/generated -I../include 
-I/usr/include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -march=x86-64 -mtune=generic 
-O2 -pipe -fstack-protector-strong -MT zkfuse.o -MD -MP -MF .deps/zkfuse.Tpo -c 
-o zkfuse.o zkfuse.cc
g++ -DHAVE_CONFIG_H -I. -I..
-I/home/raghu/zookeeper/src/contrib/zkfuse/../../c/include 
-I/home/raghu/zookeeper/src/contrib/zkfuse/../../c/generated -I../include 
-I/usr/include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -march=x86-64 -mtune=generic 
-O2 -pipe -fstack-protector-strong -MT zkadapter.o -MD -MP -MF 
.deps/zkadapter.Tpo -c -o zkadapter.o zkadapter.cc
In file included from zkadapter.h:34:0,
 from zkadapter.cc:24:
event.h:216:9: error: reference to ‘shared_ptr’ is ambiguous
 shared_ptr m_eventWrapper;
 ^~
In file included from /usr/include/boost/throw_exception.hpp:42:0,
 from /usr/include/boost/smart_ptr/shared_ptr.hpp:27,
 from /usr/include/boost/shared_ptr.hpp:17,
 from event.h:30,
 from zkadapter.h:34,
 from zkadapter.cc:24:
/usr/include/boost/exception/exception.hpp:148:11: note: candidates are: 
template class boost::shared_ptr
 class shared_ptr;
   ^~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
 from /usr/include/c++/6.2.1/memory:82,
 from /usr/include/boost/config/no_tr1/memory.hpp:21,
 from /usr/include/boost/smart_ptr/shared_ptr.hpp:23,
 from /usr/include/boost/shared_ptr.hpp:17,
 from event.h:30,
 from zkadapter.h:34,
 from zkadapter.cc:24:
/usr/include/c++/6.2.1/bits/shared_ptr_base.h:343:11: note: 
template class std::shared_ptr
 class shared_ptr;
   ^~
In file included from zkadapter.h:34:0,
 from zkadapter.cc:24:
event.h: In constructor ‘zkfuse::GenericEvent::GenericEvent(int, 
zkfuse::AbstractEventWrapper*)’:
event.h:189:27: error: class ‘zkfuse::GenericEvent’ does not have any field 
named ‘m_eventWrapper’
 m_type(type), m_eventWrapper(eventWrapper) {
   ^~
event.h: In member function ‘void* zkfuse::GenericEvent::getEvent() const’:
event.h:204:41: error: ‘m_eventWrapper’ was not declared in this scope
 void *getEvent() const { return m_eventWrapper->getWrapee(); }
 ^~
In file included from zkadapter.h:34:0,
 from zkfuse.cc:54:
event.h:216:9: error: reference to ‘shared_ptr’ is ambiguous
 shared_ptr m_eventWrapper;
 ^~
In file included from /usr/include/boost/throw_exception.hpp:42:0,
 from /usr/include/boost/smart_ptr/detail/shared_count.hpp:27,
 from /usr/include/boost/smart_ptr/weak_ptr.hpp:17,
 from /usr/include/boost/weak_ptr.hpp:16,
 from zkfuse.cc:50:
/usr/include/boost/exception/exception.hpp:148:11: note: candidates are: 
template class boost::shared_ptr
 class shared_ptr;
   ^~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
 from /usr/include/c++/6.2.1/memory:82,
 from /usr/include/boost/smart_ptr/weak_ptr.hpp:16,
 from /usr/include/boost/weak_ptr.hpp:16,
 from zkfuse.cc:50:
/usr/include/c++/6.2.1/bits/shared_ptr_base.h:343:11: note: 
template class std::shared_ptr
 class shared_ptr;
   ^~
In file included from zkadapter.h:34:0,
 from zkfuse.cc:54:
event.h: In constructor ‘zkfuse::GenericEvent::GenericEvent(int, 
zkfuse::AbstractEventWrapper*)’:
event.h:189:27: error: class ‘zkfuse::GenericEvent’ does not have any field 
named ‘m_eventWrapper’
 m_type(type), m_eventWrapper(eventWrapper) {
   ^~
event.h: In member function ‘void* zkfuse::GenericEvent::getEvent() const’:
event.h:204:41: error: ‘m_eventWrapper’ was not declared in this scope
 void *getEvent() const { 

[jira] [Created] (ZOOKEEPER-2633) Build failure in contrib/zkfuse with gcc 6.x

2016-11-17 Thread Raghavendra Prabhu (JIRA)
Raghavendra Prabhu created ZOOKEEPER-2633:
-

 Summary: Build failure in contrib/zkfuse with gcc 6.x
 Key: ZOOKEEPER-2633
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2633
 Project: ZooKeeper
  Issue Type: Bug
  Components: contrib-zkfuse
 Environment: gcc --version
gcc (GCC) 6.2.1 20160830
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


g++ --version
g++ (GCC) 6.2.1 20160830
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

CFLAGS, CXXFLAGS, and LDFLAGS are unset, hence default.

uname -a
Linux lative 4.8.8-1-ARCH #1 SMP PREEMPT Tue Nov 15 08:25:24 CET 2016 x86_64 
GNU/Linux
Reporter: Raghavendra Prabhu
Priority: Minor


The build in contrib/zkfuse fails with

{noformat}

make
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh 
/home/raghu/zookeeper/src/contrib/zkfuse/missing autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
make[1]: Entering directory '/home/raghu/zookeeper/src/contrib/zkfuse'
Making all in src
make[2]: Entering directory '/home/raghu/zookeeper/src/contrib/zkfuse/src'
g++ -DHAVE_CONFIG_H -I. -I..
-I/home/raghu/zookeeper/src/contrib/zkfuse/../../c/include 
-I/home/raghu/zookeeper/src/contrib/zkfuse/../../c/generated -I../include 
-I/usr/include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -march=x86-64 -mtune=generic 
-O2 -pipe -fstack-protector-strong -MT zkfuse.o -MD -MP -MF .deps/zkfuse.Tpo -c 
-o zkfuse.o zkfuse.cc
g++ -DHAVE_CONFIG_H -I. -I..
-I/home/raghu/zookeeper/src/contrib/zkfuse/../../c/include 
-I/home/raghu/zookeeper/src/contrib/zkfuse/../../c/generated -I../include 
-I/usr/include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -march=x86-64 -mtune=generic 
-O2 -pipe -fstack-protector-strong -MT zkadapter.o -MD -MP -MF 
.deps/zkadapter.Tpo -c -o zkadapter.o zkadapter.cc
In file included from zkadapter.h:34:0,
 from zkadapter.cc:24:
event.h:216:9: error: reference to ‘shared_ptr’ is ambiguous
 shared_ptr m_eventWrapper;
 ^~
In file included from /usr/include/boost/throw_exception.hpp:42:0,
 from /usr/include/boost/smart_ptr/shared_ptr.hpp:27,
 from /usr/include/boost/shared_ptr.hpp:17,
 from event.h:30,
 from zkadapter.h:34,
 from zkadapter.cc:24:
/usr/include/boost/exception/exception.hpp:148:11: note: candidates are: 
template class boost::shared_ptr
 class shared_ptr;
   ^~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
 from /usr/include/c++/6.2.1/memory:82,
 from /usr/include/boost/config/no_tr1/memory.hpp:21,
 from /usr/include/boost/smart_ptr/shared_ptr.hpp:23,
 from /usr/include/boost/shared_ptr.hpp:17,
 from event.h:30,
 from zkadapter.h:34,
 from zkadapter.cc:24:
/usr/include/c++/6.2.1/bits/shared_ptr_base.h:343:11: note: 
template class std::shared_ptr
 class shared_ptr;
   ^~
In file included from zkadapter.h:34:0,
 from zkadapter.cc:24:
event.h: In constructor ‘zkfuse::GenericEvent::GenericEvent(int, 
zkfuse::AbstractEventWrapper*)’:
event.h:189:27: error: class ‘zkfuse::GenericEvent’ does not have any field 
named ‘m_eventWrapper’
 m_type(type), m_eventWrapper(eventWrapper) {
   ^~
event.h: In member function ‘void* zkfuse::GenericEvent::getEvent() const’:
event.h:204:41: error: ‘m_eventWrapper’ was not declared in this scope
 void *getEvent() const { return m_eventWrapper->getWrapee(); }
 ^~
In file included from zkadapter.h:34:0,
 from zkfuse.cc:54:
event.h:216:9: error: reference to ‘shared_ptr’ is ambiguous
 shared_ptr m_eventWrapper;
 ^~
In file included from /usr/include/boost/throw_exception.hpp:42:0,
 from /usr/include/boost/smart_ptr/detail/shared_count.hpp:27,
 from /usr/include/boost/smart_ptr/weak_ptr.hpp:17,
 from /usr/include/boost/weak_ptr.hpp:16,
 from zkfuse.cc:50:
/usr/include/boost/exception/exception.hpp:148:11: note: candidates are: 
template class boost::shared_ptr
 class shared_ptr;
   ^~
In file included from /usr/include/c++/6.2.1/bits/shared_ptr.h:52:0,
 from /usr/include/c++/6.2.1/memory:82,
 

ZooKeeper_branch35_openjdk7 - Build # 300 - Still Failing

2016-11-17 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper_branch35_openjdk7/300/

###
## LAST 60 LINES OF THE CONSOLE 
###
Started by timer
[EnvInject] - Loading node environment variables.
Building remotely on H16 (ubuntu) in workspace 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch35_openjdk7
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url git://git.apache.org/zookeeper.git # timeout=10
Fetching upstream changes from git://git.apache.org/zookeeper.git
 > git --version # timeout=10
 > git -c core.askpass=true fetch --tags --progress 
 > git://git.apache.org/zookeeper.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/branch-3.5^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/branch-3.5^{commit} # timeout=10
Checking out Revision 65d2572d98b4c93df180448cfccea27024585a75 
(refs/remotes/origin/branch-3.5)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 65d2572d98b4c93df180448cfccea27024585a75
 > git rev-list 65d2572d98b4c93df180448cfccea27024585a75 # timeout=10
No emails were triggered.
[ZooKeeper_branch35_openjdk7] $ /home/jenkins/tools/ant/latest/bin/ant 
-Dtest.output=yes -Dtest.junit.threads=8 -Dtest.junit.output.format=xml 
-Djavac.target=1.7 clean test-core-java
Error: JAVA_HOME is not defined correctly.
  We cannot execute /usr/lib/jvm/java-7-openjdk-amd64//bin/java
Build step 'Invoke Ant' marked build as failure
Recording test results
ERROR: Step ?Publish JUnit test result report? failed: No test report files 
were found. Configuration error?
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any



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

ZooKeeper_branch35_jdk7 - Build # 735 - Still Failing

2016-11-17 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper_branch35_jdk7/735/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 493366 lines...]
[junit] 2016-11-17 08:52:25,985 [myid:127.0.0.1:21994] - INFO  
[main-SendThread(127.0.0.1:21994):ClientCnxn$SendThread@1113] - Opening socket 
connection to server 127.0.0.1/127.0.0.1:21994. Will not attempt to 
authenticate using SASL (unknown error)
[junit] 2016-11-17 08:52:25,986 [myid:127.0.0.1:21994] - WARN  
[main-SendThread(127.0.0.1:21994):ClientCnxn$SendThread@1235] - Session 
0x10376c05bfe for server 127.0.0.1/127.0.0.1:21994, unexpected error, 
closing socket connection and attempting reconnect
[junit] java.net.ConnectException: Connection refused
[junit] at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
[junit] at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:744)
[junit] at 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:357)
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1214)
[junit] 2016-11-17 08:52:26,397 [myid:127.0.0.1:22118] - INFO  
[main-SendThread(127.0.0.1:22118):ClientCnxn$SendThread@1113] - Opening socket 
connection to server 127.0.0.1/127.0.0.1:22118. Will not attempt to 
authenticate using SASL (unknown error)
[junit] 2016-11-17 08:52:26,398 [myid:127.0.0.1:22118] - WARN  
[main-SendThread(127.0.0.1:22118):ClientCnxn$SendThread@1235] - Session 
0x20376c5a182 for server 127.0.0.1/127.0.0.1:22118, unexpected error, 
closing socket connection and attempting reconnect
[junit] java.net.ConnectException: Connection refused
[junit] at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
[junit] at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:744)
[junit] at 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:357)
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1214)
[junit] 2016-11-17 08:52:56,788 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@82] - Memory used 28956
[junit] 2016-11-17 08:52:56,789 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@87] - Number of threads 55
[junit] 2016-11-17 08:52:56,789 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@102] - FINISHED TEST METHOD 
testManyChildWatchersAutoReset
[junit] 2016-11-17 08:52:56,789 [myid:] - INFO  [main:ClientBase@543] - 
tearDown starting
[junit] 2016-11-17 08:52:56,790 [myid:] - INFO  [ProcessThread(sid:0 
cport:19304)::PrepRequestProcessor@656] - Processed session termination for 
sessionid: 0x10376be8331
[junit] 2016-11-17 08:52:56,805 [myid:] - INFO  [main:ZooKeeper@1311] - 
Session: 0x10376be8331 closed
[junit] 2016-11-17 08:52:56,805 [myid:] - INFO  
[NIOWorkerThread-21:MBeanRegistry@128] - Unregister MBean 
[org.apache.ZooKeeperService:name0=StandaloneServer_port19304,name1=Connections,name2=127.0.0.1,name3=0x10376be8331]
[junit] 2016-11-17 08:52:56,805 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@513] - EventThread shut down for 
session: 0x10376be8331
[junit] 2016-11-17 08:52:56,806 [myid:] - INFO  [ProcessThread(sid:0 
cport:19304)::PrepRequestProcessor@656] - Processed session termination for 
sessionid: 0x10376be83310001
[junit] 2016-11-17 08:52:56,806 [myid:] - INFO  
[NIOWorkerThread-21:NIOServerCnxn@607] - Closed socket connection for client 
/127.0.0.1:54490 which had sessionid 0x10376be8331
[junit] 2016-11-17 08:52:56,847 [myid:] - INFO  
[NIOWorkerThread-25:MBeanRegistry@128] - Unregister MBean 
[org.apache.ZooKeeperService:name0=StandaloneServer_port19304,name1=Connections,name2=127.0.0.1,name3=0x10376be83310001]
[junit] 2016-11-17 08:52:56,848 [myid:] - INFO  
[NIOWorkerThread-25:NIOServerCnxn@607] - Closed socket connection for client 
/127.0.0.1:54477 which had sessionid 0x10376be83310001
[junit] 2016-11-17 08:52:56,848 [myid:] - INFO  [main:ZooKeeper@1311] - 
Session: 0x10376be83310001 closed
[junit] 2016-11-17 08:52:56,848 [myid:] - INFO  [main:ClientBase@513] - 
STOPPING server
[junit] 2016-11-17 08:52:56,848 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@513] - EventThread shut down for 
session: 0x10376be83310001
[junit] 2016-11-17 08:52:56,849 [myid:] - INFO  
[ConnnectionExpirer:NIOServerCnxnFactory$ConnectionExpirerThread@583] - 
ConnnectionExpirerThread interrupted
[junit] 2016-11-17 08:52:56,850 [myid:] - INFO  
[NIOServerCxnFactory.AcceptThread:0.0.0.0/0.0.0.0:19304:NIOServerCnxnFactory$AcceptThread@219]
 - accept thread exitted run method
[junit] 2016-11-17 08:52:56,852 [myid:] - INFO  
[NIOServerCxnFactory.SelectorThread-0:NIOServerCnxnFactory$SelectorThread@420] 
- selector thread exitted run method
[junit] 

ZooKeeper-trunk-solaris - Build # 1389 - Still Failing

2016-11-17 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper-trunk-solaris/1389/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 458221 lines...]
[junit] 2016-11-17 08:25:00,173 [myid:] - INFO  
[main:NIOServerCnxnFactory@686] - binding to port 0.0.0.0/0.0.0.0:11222
[junit] 2016-11-17 08:25:00,173 [myid:] - INFO  [main:ClientBase@361] - 
STARTING server instance 127.0.0.1:11222
[junit] 2016-11-17 08:25:00,174 [myid:] - INFO  [main:ZooKeeperServer@891] 
- minSessionTimeout set to 6000
[junit] 2016-11-17 08:25:00,174 [myid:] - INFO  [main:ZooKeeperServer@900] 
- maxSessionTimeout set to 6
[junit] 2016-11-17 08:25:00,174 [myid:] - INFO  [main:ZooKeeperServer@160] 
- Created server with tickTime 3000 minSessionTimeout 6000 maxSessionTimeout 
6 datadir 
/zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/ZooKeeper-trunk-solaris/build/test/tmp/test6771098495465590210.junit.dir/version-2
 snapdir 
/zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/ZooKeeper-trunk-solaris/build/test/tmp/test6771098495465590210.junit.dir/version-2
[junit] 2016-11-17 08:25:00,174 [myid:] - INFO  [main:FileSnap@83] - 
Reading snapshot 
/zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/ZooKeeper-trunk-solaris/build/test/tmp/test6771098495465590210.junit.dir/version-2/snapshot.b
[junit] 2016-11-17 08:25:00,176 [myid:] - INFO  [main:FileTxnSnapLog@306] - 
Snapshotting: 0xb to 
/zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/ZooKeeper-trunk-solaris/build/test/tmp/test6771098495465590210.junit.dir/version-2/snapshot.b
[junit] 2016-11-17 08:25:00,177 [myid:] - ERROR [main:ZooKeeperServer@503] 
- ZKShutdownHandler is not registered, so ZooKeeper server won't take any 
action on ERROR or SHUTDOWN server state changes
[junit] 2016-11-17 08:25:00,177 [myid:] - INFO  
[main:FourLetterWordMain@85] - connecting to 127.0.0.1 11222
[junit] 2016-11-17 08:25:00,178 [myid:] - INFO  
[NIOServerCxnFactory.AcceptThread:0.0.0.0/0.0.0.0:11222:NIOServerCnxnFactory$AcceptThread@296]
 - Accepted socket connection from /127.0.0.1:59035
[junit] 2016-11-17 08:25:00,178 [myid:] - INFO  
[NIOWorkerThread-1:NIOServerCnxn@485] - Processing stat command from 
/127.0.0.1:59035
[junit] 2016-11-17 08:25:00,178 [myid:] - INFO  
[NIOWorkerThread-1:StatCommand@49] - Stat command output
[junit] 2016-11-17 08:25:00,179 [myid:] - INFO  
[NIOWorkerThread-1:NIOServerCnxn@607] - Closed socket connection for client 
/127.0.0.1:59035 (no session established for client)
[junit] 2016-11-17 08:25:00,179 [myid:] - INFO  [main:JMXEnv@228] - 
ensureParent:[InMemoryDataTree, StandaloneServer_port]
[junit] 2016-11-17 08:25:00,180 [myid:] - INFO  [main:JMXEnv@245] - 
expect:InMemoryDataTree
[junit] 2016-11-17 08:25:00,180 [myid:] - INFO  [main:JMXEnv@249] - 
found:InMemoryDataTree 
org.apache.ZooKeeperService:name0=StandaloneServer_port11222,name1=InMemoryDataTree
[junit] 2016-11-17 08:25:00,180 [myid:] - INFO  [main:JMXEnv@245] - 
expect:StandaloneServer_port
[junit] 2016-11-17 08:25:00,180 [myid:] - INFO  [main:JMXEnv@249] - 
found:StandaloneServer_port 
org.apache.ZooKeeperService:name0=StandaloneServer_port11222
[junit] 2016-11-17 08:25:00,180 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@82] - Memory used 13382
[junit] 2016-11-17 08:25:00,181 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@87] - Number of threads 24
[junit] 2016-11-17 08:25:00,181 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@102] - FINISHED TEST METHOD 
testQuota
[junit] 2016-11-17 08:25:00,181 [myid:] - INFO  [main:ClientBase@543] - 
tearDown starting
[junit] 2016-11-17 08:25:00,261 [myid:] - INFO  
[SessionTracker:SessionTrackerImpl@158] - SessionTrackerImpl exited loop!
[junit] 2016-11-17 08:25:00,261 [myid:] - INFO  
[SessionTracker:SessionTrackerImpl@158] - SessionTrackerImpl exited loop!
[junit] 2016-11-17 08:25:00,262 [myid:] - INFO  [main:ZooKeeper@1313] - 
Session: 0x124ee5ded57 closed
[junit] 2016-11-17 08:25:00,262 [myid:] - INFO  [main:ClientBase@513] - 
STOPPING server
[junit] 2016-11-17 08:25:00,262 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@513] - EventThread shut down for 
session: 0x124ee5ded57
[junit] 2016-11-17 08:25:00,263 [myid:] - INFO  
[NIOServerCxnFactory.SelectorThread-0:NIOServerCnxnFactory$SelectorThread@420] 
- selector thread exitted run method
[junit] 2016-11-17 08:25:00,263 [myid:] - INFO  
[NIOServerCxnFactory.SelectorThread-1:NIOServerCnxnFactory$SelectorThread@420] 
- selector thread exitted run method
[junit] 2016-11-17 08:25:00,263 [myid:] - INFO  
[NIOServerCxnFactory.AcceptThread:0.0.0.0/0.0.0.0:11222:NIOServerCnxnFactory$AcceptThread@219]
 - accept thread exitted run method
[junit] 2016-11-17 08:25:00,262 [myid:] -