[jira] [Comment Edited] (ZOOKEEPER-2728) Clean up findbug warnings in branch-3.4

2017-03-20 Thread Rakesh R (JIRA)

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

Rakesh R edited comment on ZOOKEEPER-2728 at 3/21/17 5:04 AM:
--

Attached sheet contains the findbugs to be cleaned up. I've created sub-tasks 
for each {{Warning Type}} under this parent jira, could use respective 
sub-tasks for cleaning up the same.


was (Author: rakeshr):
Attached sheet contains the findbugs to be cleaned up.

> Clean up findbug warnings in branch-3.4
> ---
>
> Key: ZOOKEEPER-2728
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2728
> Project: ZooKeeper
>  Issue Type: Bug
>Affects Versions: 3.4.9
>Reporter: Rakesh R
> Attachments: Branch-3.4 FindBugs Report.html, 
> zookeeper-findbugs-warnings-present-in-3.4.9.html
>
>
> This jira to cleanup findbug warnings reported in branch-3.4
> [Branch3.4 
> FindbugsWarnings.html|https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/444/artifact/build/test/findbugs/newPatchFindbugsWarnings.html]



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (ZOOKEEPER-2728) Clean up findbug warnings in branch-3.4

2017-03-20 Thread Rakesh R (JIRA)

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

Rakesh R updated ZOOKEEPER-2728:

Attachment: Branch-3.4 FindBugs Report.html

Attached sheet contains the findbugs to be cleaned up.

> Clean up findbug warnings in branch-3.4
> ---
>
> Key: ZOOKEEPER-2728
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2728
> Project: ZooKeeper
>  Issue Type: Bug
>Affects Versions: 3.4.9
>Reporter: Rakesh R
> Attachments: Branch-3.4 FindBugs Report.html, 
> zookeeper-findbugs-warnings-present-in-3.4.9.html
>
>
> This jira to cleanup findbug warnings reported in branch-3.4
> [Branch3.4 
> FindbugsWarnings.html|https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/444/artifact/build/test/findbugs/newPatchFindbugsWarnings.html]



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (ZOOKEEPER-2728) Clean up findbug warnings in branch-3.4

2017-03-20 Thread Rakesh R (JIRA)

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

Rakesh R updated ZOOKEEPER-2728:

Attachment: zookeeper-findbugs-warnings-present-in-3.4.9.html

Attached sheet contains the warnings present in previous 3.4.x release. Compare 
to the previous, we have 8 new {{Medium Priority Warnings}} - Correctness 
Warnings(2), Dodgy code Warnings(3), Malicious code vulnerability Warnings(3)

> Clean up findbug warnings in branch-3.4
> ---
>
> Key: ZOOKEEPER-2728
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2728
> Project: ZooKeeper
>  Issue Type: Bug
>Affects Versions: 3.4.9
>Reporter: Rakesh R
> Attachments: zookeeper-findbugs-warnings-present-in-3.4.9.html
>
>
> This jira to cleanup findbug warnings reported in branch-3.4
> [Branch3.4 
> FindbugsWarnings.html|https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/444/artifact/build/test/findbugs/newPatchFindbugsWarnings.html]



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (ZOOKEEPER-2712) MiniKdc test case intermittently failing due to principal not found in Kerberos database

2017-03-20 Thread Rakesh R (JIRA)

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

Rakesh R commented on ZOOKEEPER-2712:
-

Thanks [~hanm], Attached sheet contains the warnings present in previous 3.4.x 
release. Compare to the previous, we have 8 new {{Medium Priority Warnings}} - 
Correctness Warnings(2), Dodgy code Warnings(3), Malicious code vulnerability 
Warnings(3)

> MiniKdc test case intermittently failing due to principal not found in 
> Kerberos database
> 
>
> Key: ZOOKEEPER-2712
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2712
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: tests
>Reporter: Rakesh R
>Assignee: Rakesh R
>Priority: Critical
> Fix For: 3.4.10
>
> Attachments: 
> TEST-org.apache.zookeeper.server.quorum.auth.QuorumKerberosAuthTest.txt, 
> zookeeper-findbugs-warnings-present-in-3.4.9.html
>
>
> MiniKdc test cases are intermittently failing due to not finding the 
> principal. Below is the failure stacktrace.
> {code}
> 2017-03-08 13:21:10,843 [myid:] - ERROR 
> [NioProcessor-1:AuthenticationService@187] - Error while searching for client 
> lear...@example.com : Client not found in Kerberos database
> 2017-03-08 13:21:10,843 [myid:] - WARN  
> [NioProcessor-2:KerberosProtocolHandler@241] - Server not found in Kerberos 
> database (7)
> 2017-03-08 13:21:10,845 [myid:] - WARN  
> [NioProcessor-2:KerberosProtocolHandler@242] - Server not found in Kerberos 
> database (7)
> 2017-03-08 13:21:10,844 [myid:] - WARN  
> [NioProcessor-1:KerberosProtocolHandler@241] - Client not found in Kerberos 
> database (6)
> 2017-03-08 13:21:10,845 [myid:] - WARN  
> [NioProcessor-1:KerberosProtocolHandler@242] - Client not found in Kerberos 
> database (6)
> {code}
> Will attach the detailed log to jira.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Updated] (ZOOKEEPER-2712) MiniKdc test case intermittently failing due to principal not found in Kerberos database

2017-03-20 Thread Rakesh R (JIRA)

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

Rakesh R updated ZOOKEEPER-2712:

Attachment: zookeeper-findbugs-warnings-present-in-3.4.9.html

> MiniKdc test case intermittently failing due to principal not found in 
> Kerberos database
> 
>
> Key: ZOOKEEPER-2712
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2712
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: tests
>Reporter: Rakesh R
>Assignee: Rakesh R
>Priority: Critical
> Fix For: 3.4.10
>
> Attachments: 
> TEST-org.apache.zookeeper.server.quorum.auth.QuorumKerberosAuthTest.txt, 
> zookeeper-findbugs-warnings-present-in-3.4.9.html
>
>
> MiniKdc test cases are intermittently failing due to not finding the 
> principal. Below is the failure stacktrace.
> {code}
> 2017-03-08 13:21:10,843 [myid:] - ERROR 
> [NioProcessor-1:AuthenticationService@187] - Error while searching for client 
> lear...@example.com : Client not found in Kerberos database
> 2017-03-08 13:21:10,843 [myid:] - WARN  
> [NioProcessor-2:KerberosProtocolHandler@241] - Server not found in Kerberos 
> database (7)
> 2017-03-08 13:21:10,845 [myid:] - WARN  
> [NioProcessor-2:KerberosProtocolHandler@242] - Server not found in Kerberos 
> database (7)
> 2017-03-08 13:21:10,844 [myid:] - WARN  
> [NioProcessor-1:KerberosProtocolHandler@241] - Client not found in Kerberos 
> database (6)
> 2017-03-08 13:21:10,845 [myid:] - WARN  
> [NioProcessor-1:KerberosProtocolHandler@242] - Client not found in Kerberos 
> database (6)
> {code}
> Will attach the detailed log to jira.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


ZooKeeper_branch34_jdk7 - Build # 1449 - Still Failing

2017-03-20 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper_branch34_jdk7/1449/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 31.18 MB...]
[junit] 2017-03-21 02:41:40,272 [myid:] - INFO  
[main:SessionTrackerImpl@225] - Shutting down
[junit] 2017-03-21 02:41:40,272 [myid:] - INFO  
[main:PrepRequestProcessor@764] - Shutting down
[junit] 2017-03-21 02:41:40,273 [myid:] - INFO  
[main:SyncRequestProcessor@208] - Shutting down
[junit] 2017-03-21 02:41:40,273 [myid:] - INFO  [ProcessThread(sid:0 
cport:11221)::PrepRequestProcessor@143] - PrepRequestProcessor exited loop!
[junit] 2017-03-21 02:41:40,273 [myid:] - INFO  
[SyncThread:0:SyncRequestProcessor@186] - SyncRequestProcessor exited!
[junit] 2017-03-21 02:41:40,274 [myid:] - INFO  
[main:FinalRequestProcessor@402] - shutdown of request processor complete
[junit] 2017-03-21 02:41:40,274 [myid:] - INFO  
[main:FourLetterWordMain@62] - connecting to 127.0.0.1 11221
[junit] 2017-03-21 02:41:40,275 [myid:] - INFO  [main:JMXEnv@147] - 
ensureOnly:[]
[junit] 2017-03-21 02:41:40,277 [myid:] - INFO  [main:ClientBase@445] - 
STARTING server
[junit] 2017-03-21 02:41:40,277 [myid:] - INFO  [main:ClientBase@366] - 
CREATING server instance 127.0.0.1:11221
[junit] 2017-03-21 02:41:40,277 [myid:] - INFO  
[main:NIOServerCnxnFactory@89] - binding to port 0.0.0.0/0.0.0.0:11221
[junit] 2017-03-21 02:41:40,277 [myid:] - INFO  [main:ClientBase@341] - 
STARTING server instance 127.0.0.1:11221
[junit] 2017-03-21 02:41:40,278 [myid:] - INFO  [main:ZooKeeperServer@173] 
- Created server with tickTime 3000 minSessionTimeout 6000 maxSessionTimeout 
6 datadir 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34_jdk7/build/test/tmp/test7953523503921880328.junit.dir/version-2
 snapdir 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34_jdk7/build/test/tmp/test7953523503921880328.junit.dir/version-2
[junit] 2017-03-21 02:41:40,282 [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] 2017-03-21 02:41:40,282 [myid:] - INFO  
[main:FourLetterWordMain@62] - connecting to 127.0.0.1 11221
[junit] 2017-03-21 02:41:40,283 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxnFactory@192] - 
Accepted socket connection from /127.0.0.1:60183
[junit] 2017-03-21 02:41:40,283 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxn@883] - Processing 
stat command from /127.0.0.1:60183
[junit] 2017-03-21 02:41:40,283 [myid:] - INFO  
[Thread-4:NIOServerCnxn$StatCommand@674] - Stat command output
[junit] 2017-03-21 02:41:40,284 [myid:] - INFO  
[Thread-4:NIOServerCnxn@1044] - Closed socket connection for client 
/127.0.0.1:60183 (no session established for client)
[junit] 2017-03-21 02:41:40,284 [myid:] - INFO  [main:JMXEnv@230] - 
ensureParent:[InMemoryDataTree, StandaloneServer_port]
[junit] 2017-03-21 02:41:40,286 [myid:] - INFO  [main:JMXEnv@247] - 
expect:InMemoryDataTree
[junit] 2017-03-21 02:41:40,287 [myid:] - INFO  [main:JMXEnv@251] - 
found:InMemoryDataTree 
org.apache.ZooKeeperService:name0=StandaloneServer_port11221,name1=InMemoryDataTree
[junit] 2017-03-21 02:41:40,287 [myid:] - INFO  [main:JMXEnv@247] - 
expect:StandaloneServer_port
[junit] 2017-03-21 02:41:40,287 [myid:] - INFO  [main:JMXEnv@251] - 
found:StandaloneServer_port 
org.apache.ZooKeeperService:name0=StandaloneServer_port11221
[junit] 2017-03-21 02:41:40,287 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@58] - Memory used 35676
[junit] 2017-03-21 02:41:40,288 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@63] - Number of threads 20
[junit] 2017-03-21 02:41:40,288 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@78] - FINISHED TEST METHOD testQuota
[junit] 2017-03-21 02:41:40,288 [myid:] - INFO  [main:ClientBase@522] - 
tearDown starting
[junit] 2017-03-21 02:41:40,353 [myid:] - INFO  [main:ZooKeeper@684] - 
Session: 0x15aeebdcb0d closed
[junit] 2017-03-21 02:41:40,353 [myid:] - INFO  [main:ClientBase@492] - 
STOPPING server
[junit] 2017-03-21 02:41:40,354 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@519] - EventThread shut down for 
session: 0x15aeebdcb0d
[junit] 2017-03-21 02:41:40,354 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxnFactory@219] - 
NIOServerCnxn factory exited run method
[junit] 2017-03-21 02:41:40,354 [myid:] - INFO  [main:ZooKeeperServer@505] 
- shutting down
[junit] 2017-03-21 02:41:40,354 [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] 2017-03-21 02:41:40,355 

Re: Snapshot build please?

2017-03-20 Thread Jordan Zimmerman
I recall it was done in the past. Maven Central Snapshots is available here: 
https://oss.sonatype.org/content/repositories/snapshots/ 
 - though, I could be 
misremembering. Apache has a snapshots directory: 
https://repository.apache.org/content/repositories/snapshots 
 - Anyway, if you 
use the Apache parent pom it gets deployed to the right place. But, I don't 
know about ZooKeeper's ant file.

-Jordan

> On Mar 20, 2017, at 7:46 PM, Liang Han  wrote:
> 
> I can't find any of existing snapshot jars on Maven Central. Do we ever
> publish snapshot jars on maven central?
> 
> On Mon, Mar 20, 2017 at 9:02 AM, Jordan Zimmerman <
> jor...@jordanzimmerman.com> wrote:
> 
>> If you don't mind, can a committer please make a snapshot build of 3.5
>> (branch-3.5) and deploy it to Maven Central? I'd like to work on the
>> Curator portion of TTL Nodes.
>> 
>> Thank you!
>> 
>> -Jordan
> 
> 
> 
> 
> -- 
> Cheers
> Michael.



[jira] [Commented] (ZOOKEEPER-2712) MiniKdc test case intermittently failing due to principal not found in Kerberos database

2017-03-20 Thread Michael Han (JIRA)

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

Michael Han commented on ZOOKEEPER-2712:


Thanks Rakesh for the explain on the root cause of the issue. I give +1 on the 
patch.

Regarding find bugs, I tend to agree that they are not blockers but I'd like to 
make sure that these warnings are not introduced after 3.4.9 - in other words, 
Do these warnings, or a large subset of it also exists in 3.4.9 (and possibly 
previous 3.4.x releases)? If that is the case I think we can postpone fixing 
these, as it is not regression and previous releases all contain them. 
[~rakeshr] Can you please confirm that previous 3.4.x release (at leaset 3.4.9) 
has similar scale of find bug warnings?

> MiniKdc test case intermittently failing due to principal not found in 
> Kerberos database
> 
>
> Key: ZOOKEEPER-2712
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2712
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: tests
>Reporter: Rakesh R
>Assignee: Rakesh R
>Priority: Critical
> Fix For: 3.4.10
>
> Attachments: 
> TEST-org.apache.zookeeper.server.quorum.auth.QuorumKerberosAuthTest.txt
>
>
> MiniKdc test cases are intermittently failing due to not finding the 
> principal. Below is the failure stacktrace.
> {code}
> 2017-03-08 13:21:10,843 [myid:] - ERROR 
> [NioProcessor-1:AuthenticationService@187] - Error while searching for client 
> lear...@example.com : Client not found in Kerberos database
> 2017-03-08 13:21:10,843 [myid:] - WARN  
> [NioProcessor-2:KerberosProtocolHandler@241] - Server not found in Kerberos 
> database (7)
> 2017-03-08 13:21:10,845 [myid:] - WARN  
> [NioProcessor-2:KerberosProtocolHandler@242] - Server not found in Kerberos 
> database (7)
> 2017-03-08 13:21:10,844 [myid:] - WARN  
> [NioProcessor-1:KerberosProtocolHandler@241] - Client not found in Kerberos 
> database (6)
> 2017-03-08 13:21:10,845 [myid:] - WARN  
> [NioProcessor-1:KerberosProtocolHandler@242] - Client not found in Kerberos 
> database (6)
> {code}
> Will attach the detailed log to jira.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (ZOOKEEPER-2712) MiniKdc test case intermittently failing due to principal not found in Kerberos database

2017-03-20 Thread ASF GitHub Bot (JIRA)

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

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

Github user hanm commented on the issue:

https://github.com/apache/zookeeper/pull/200
  
lgtm!


> MiniKdc test case intermittently failing due to principal not found in 
> Kerberos database
> 
>
> Key: ZOOKEEPER-2712
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2712
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: tests
>Reporter: Rakesh R
>Assignee: Rakesh R
>Priority: Critical
> Fix For: 3.4.10
>
> Attachments: 
> TEST-org.apache.zookeeper.server.quorum.auth.QuorumKerberosAuthTest.txt
>
>
> MiniKdc test cases are intermittently failing due to not finding the 
> principal. Below is the failure stacktrace.
> {code}
> 2017-03-08 13:21:10,843 [myid:] - ERROR 
> [NioProcessor-1:AuthenticationService@187] - Error while searching for client 
> lear...@example.com : Client not found in Kerberos database
> 2017-03-08 13:21:10,843 [myid:] - WARN  
> [NioProcessor-2:KerberosProtocolHandler@241] - Server not found in Kerberos 
> database (7)
> 2017-03-08 13:21:10,845 [myid:] - WARN  
> [NioProcessor-2:KerberosProtocolHandler@242] - Server not found in Kerberos 
> database (7)
> 2017-03-08 13:21:10,844 [myid:] - WARN  
> [NioProcessor-1:KerberosProtocolHandler@241] - Client not found in Kerberos 
> database (6)
> 2017-03-08 13:21:10,845 [myid:] - WARN  
> [NioProcessor-1:KerberosProtocolHandler@242] - Client not found in Kerberos 
> database (6)
> {code}
> Will attach the detailed log to jira.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[GitHub] zookeeper issue #200: ZOOKEEPER-2712: MiniKdc test case intermittently faili...

2017-03-20 Thread hanm
Github user hanm commented on the issue:

https://github.com/apache/zookeeper/pull/200
  
lgtm!


---
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.
---


Re: Snapshot build please?

2017-03-20 Thread Liang Han
I can't find any of existing snapshot jars on Maven Central. Do we ever
publish snapshot jars on maven central?

On Mon, Mar 20, 2017 at 9:02 AM, Jordan Zimmerman <
jor...@jordanzimmerman.com> wrote:

> If you don't mind, can a committer please make a snapshot build of 3.5
> (branch-3.5) and deploy it to Maven Central? I'd like to work on the
> Curator portion of TTL Nodes.
>
> Thank you!
>
> -Jordan




-- 
Cheers
Michael.


[jira] [Commented] (ZOOKEEPER-2725) Upgrading to a global session fails with a multiop

2017-03-20 Thread ASF GitHub Bot (JIRA)

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

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

Github user hanm commented on the issue:

https://github.com/apache/zookeeper/pull/195
  
LGTM, except it does not build with JDK 7. Will merge after the fix.


> Upgrading to a global session fails with a multiop
> --
>
> Key: ZOOKEEPER-2725
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2725
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: server
>Affects Versions: 3.5.2
>Reporter: Brian Nixon
>
> On an ensemble with local sessions enabled, when a client with a local 
> session requests the creation of an ephemeral node within a multi-op, the 
> client gets a session expired message.  The same multi-op works if the 
> session is already global. This breaks the client's expectation of seamless 
> promotion from local session to global session server-side. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (ZOOKEEPER-2725) Upgrading to a global session fails with a multiop

2017-03-20 Thread ASF GitHub Bot (JIRA)

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

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

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

https://github.com/apache/zookeeper/pull/195#discussion_r107051228
  
--- Diff: 
src/java/test/org/apache/zookeeper/server/MultiOpSessionUpgradeTest.java ---
@@ -0,0 +1,135 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.zookeeper.server;
+
+import org.apache.jute.BinaryOutputArchive;
+import org.apache.zookeeper.CreateMode;
+import org.apache.zookeeper.KeeperException;
+import org.apache.zookeeper.Op;
+import org.apache.zookeeper.OpResult;
+import org.apache.zookeeper.ZooDefs;
+import org.apache.zookeeper.ZooKeeper;
+import org.apache.zookeeper.proto.CreateRequest;
+import org.apache.zookeeper.proto.GetDataRequest;
+import org.apache.zookeeper.server.quorum.QuorumPeer;
+import org.apache.zookeeper.server.quorum.QuorumZooKeeperServer;
+import org.apache.zookeeper.server.quorum.UpgradeableSessionTracker;
+import org.apache.zookeeper.test.QuorumBase;
+import org.junit.Assert;
+import org.junit.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.nio.ByteBuffer;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+public class MultiOpSessionUpgradeTest extends QuorumBase {
+protected static final Logger LOG = 
LoggerFactory.getLogger(MultiOpSessionUpgradeTest.class);
+
+@Override
+public void setUp() throws Exception {
+localSessionsEnabled = true;
+localSessionsUpgradingEnabled = true;
+super.setUp();
+}
+
+@Test
+public void ephemeralCreateMultiOpTest() throws KeeperException, 
InterruptedException, IOException {
+final ZooKeeper zk = createClient();
+
+String data = "test";
+String path = "/ephemeralcreatemultiop";
+zk.create(path, new byte[0], ZooDefs.Ids.OPEN_ACL_UNSAFE, 
CreateMode.PERSISTENT);
+
+QuorumZooKeeperServer server = 
getConnectedServer(zk.getSessionId());
+Assert.assertNotNull("unable to find server interlocutor", server);
+UpgradeableSessionTracker sessionTracker = 
(UpgradeableSessionTracker)server.getSessionTracker();
+Assert.assertFalse("session already global", 
sessionTracker.isGlobalSession(zk.getSessionId()));
+
+List multi = null;
+try {
+multi = zk.multi(Arrays.asList(
+Op.setData(path, data.getBytes(), 0),
+Op.create(path + "/e", data.getBytes(), 
ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.EPHEMERAL),
+Op.create(path + "/p", data.getBytes(), 
ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT),
+Op.create(path + "/q", data.getBytes(), 
ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.EPHEMERAL)
+));
+} catch (KeeperException.SessionExpiredException e) {
+// the scenario that inspired this unit test
+Assert.fail("received session expired for a session promotion 
in a multi-op");
+}
+
+Assert.assertNotNull(multi);
+Assert.assertEquals(4, multi.size());
+Assert.assertEquals(data, new String(zk.getData(path + "/e", 
false, null)));
+Assert.assertEquals(data, new String(zk.getData(path + "/p", 
false, null)));
+Assert.assertEquals(data, new String(zk.getData(path + "/q", 
false, null)));
+Assert.assertTrue("session not promoted", 
sessionTracker.isGlobalSession(zk.getSessionId()));
+}
+
+@Test
+public void directCheckUpgradeSessionTest() throws IOException, 
InterruptedException, 

[GitHub] zookeeper issue #195: ZOOKEEPER-2725: Promote local session to global when e...

2017-03-20 Thread hanm
Github user hanm commented on the issue:

https://github.com/apache/zookeeper/pull/195
  
LGTM, except it does not build with JDK 7. Will merge after the fix.


---
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-2725) Upgrading to a global session fails with a multiop

2017-03-20 Thread ASF GitHub Bot (JIRA)

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

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

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

https://github.com/apache/zookeeper/pull/195#discussion_r107051170
  
--- Diff: 
src/java/test/org/apache/zookeeper/server/MultiOpSessionUpgradeTest.java ---
@@ -0,0 +1,135 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.zookeeper.server;
+
+import org.apache.jute.BinaryOutputArchive;
+import org.apache.zookeeper.CreateMode;
+import org.apache.zookeeper.KeeperException;
+import org.apache.zookeeper.Op;
+import org.apache.zookeeper.OpResult;
+import org.apache.zookeeper.ZooDefs;
+import org.apache.zookeeper.ZooKeeper;
+import org.apache.zookeeper.proto.CreateRequest;
+import org.apache.zookeeper.proto.GetDataRequest;
+import org.apache.zookeeper.server.quorum.QuorumPeer;
+import org.apache.zookeeper.server.quorum.QuorumZooKeeperServer;
+import org.apache.zookeeper.server.quorum.UpgradeableSessionTracker;
+import org.apache.zookeeper.test.QuorumBase;
+import org.junit.Assert;
+import org.junit.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.nio.ByteBuffer;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+public class MultiOpSessionUpgradeTest extends QuorumBase {
+protected static final Logger LOG = 
LoggerFactory.getLogger(MultiOpSessionUpgradeTest.class);
+
+@Override
+public void setUp() throws Exception {
+localSessionsEnabled = true;
+localSessionsUpgradingEnabled = true;
+super.setUp();
+}
+
+@Test
+public void ephemeralCreateMultiOpTest() throws KeeperException, 
InterruptedException, IOException {
+final ZooKeeper zk = createClient();
+
+String data = "test";
+String path = "/ephemeralcreatemultiop";
+zk.create(path, new byte[0], ZooDefs.Ids.OPEN_ACL_UNSAFE, 
CreateMode.PERSISTENT);
+
+QuorumZooKeeperServer server = 
getConnectedServer(zk.getSessionId());
+Assert.assertNotNull("unable to find server interlocutor", server);
+UpgradeableSessionTracker sessionTracker = 
(UpgradeableSessionTracker)server.getSessionTracker();
+Assert.assertFalse("session already global", 
sessionTracker.isGlobalSession(zk.getSessionId()));
+
+List multi = null;
+try {
+multi = zk.multi(Arrays.asList(
+Op.setData(path, data.getBytes(), 0),
+Op.create(path + "/e", data.getBytes(), 
ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.EPHEMERAL),
+Op.create(path + "/p", data.getBytes(), 
ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT),
+Op.create(path + "/q", data.getBytes(), 
ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.EPHEMERAL)
+));
+} catch (KeeperException.SessionExpiredException e) {
+// the scenario that inspired this unit test
+Assert.fail("received session expired for a session promotion 
in a multi-op");
+}
+
+Assert.assertNotNull(multi);
+Assert.assertEquals(4, multi.size());
+Assert.assertEquals(data, new String(zk.getData(path + "/e", 
false, null)));
+Assert.assertEquals(data, new String(zk.getData(path + "/p", 
false, null)));
+Assert.assertEquals(data, new String(zk.getData(path + "/q", 
false, null)));
+Assert.assertTrue("session not promoted", 
sessionTracker.isGlobalSession(zk.getSessionId()));
+}
+
+@Test
+public void directCheckUpgradeSessionTest() throws IOException, 
InterruptedException, 

[GitHub] zookeeper pull request #195: ZOOKEEPER-2725: Promote local session to global...

2017-03-20 Thread hanm
Github user hanm commented on a diff in the pull request:

https://github.com/apache/zookeeper/pull/195#discussion_r107051170
  
--- Diff: 
src/java/test/org/apache/zookeeper/server/MultiOpSessionUpgradeTest.java ---
@@ -0,0 +1,135 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.zookeeper.server;
+
+import org.apache.jute.BinaryOutputArchive;
+import org.apache.zookeeper.CreateMode;
+import org.apache.zookeeper.KeeperException;
+import org.apache.zookeeper.Op;
+import org.apache.zookeeper.OpResult;
+import org.apache.zookeeper.ZooDefs;
+import org.apache.zookeeper.ZooKeeper;
+import org.apache.zookeeper.proto.CreateRequest;
+import org.apache.zookeeper.proto.GetDataRequest;
+import org.apache.zookeeper.server.quorum.QuorumPeer;
+import org.apache.zookeeper.server.quorum.QuorumZooKeeperServer;
+import org.apache.zookeeper.server.quorum.UpgradeableSessionTracker;
+import org.apache.zookeeper.test.QuorumBase;
+import org.junit.Assert;
+import org.junit.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.nio.ByteBuffer;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+public class MultiOpSessionUpgradeTest extends QuorumBase {
+protected static final Logger LOG = 
LoggerFactory.getLogger(MultiOpSessionUpgradeTest.class);
+
+@Override
+public void setUp() throws Exception {
+localSessionsEnabled = true;
+localSessionsUpgradingEnabled = true;
+super.setUp();
+}
+
+@Test
+public void ephemeralCreateMultiOpTest() throws KeeperException, 
InterruptedException, IOException {
+final ZooKeeper zk = createClient();
+
+String data = "test";
+String path = "/ephemeralcreatemultiop";
+zk.create(path, new byte[0], ZooDefs.Ids.OPEN_ACL_UNSAFE, 
CreateMode.PERSISTENT);
+
+QuorumZooKeeperServer server = 
getConnectedServer(zk.getSessionId());
+Assert.assertNotNull("unable to find server interlocutor", server);
+UpgradeableSessionTracker sessionTracker = 
(UpgradeableSessionTracker)server.getSessionTracker();
+Assert.assertFalse("session already global", 
sessionTracker.isGlobalSession(zk.getSessionId()));
+
+List multi = null;
+try {
+multi = zk.multi(Arrays.asList(
+Op.setData(path, data.getBytes(), 0),
+Op.create(path + "/e", data.getBytes(), 
ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.EPHEMERAL),
+Op.create(path + "/p", data.getBytes(), 
ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT),
+Op.create(path + "/q", data.getBytes(), 
ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.EPHEMERAL)
+));
+} catch (KeeperException.SessionExpiredException e) {
+// the scenario that inspired this unit test
+Assert.fail("received session expired for a session promotion 
in a multi-op");
+}
+
+Assert.assertNotNull(multi);
+Assert.assertEquals(4, multi.size());
+Assert.assertEquals(data, new String(zk.getData(path + "/e", 
false, null)));
+Assert.assertEquals(data, new String(zk.getData(path + "/p", 
false, null)));
+Assert.assertEquals(data, new String(zk.getData(path + "/q", 
false, null)));
+Assert.assertTrue("session not promoted", 
sessionTracker.isGlobalSession(zk.getSessionId()));
+}
+
+@Test
+public void directCheckUpgradeSessionTest() throws IOException, 
InterruptedException, KeeperException {
+final ZooKeeper zk = createClient();
+
+String path = "/directcheckupgradesession";
+zk.create(path, new byte[0], ZooDefs.Ids.OPEN_ACL_UNSAFE, 
CreateMode.PERSISTENT);
+
+

[GitHub] zookeeper pull request #195: ZOOKEEPER-2725: Promote local session to global...

2017-03-20 Thread hanm
Github user hanm commented on a diff in the pull request:

https://github.com/apache/zookeeper/pull/195#discussion_r107051228
  
--- Diff: 
src/java/test/org/apache/zookeeper/server/MultiOpSessionUpgradeTest.java ---
@@ -0,0 +1,135 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.zookeeper.server;
+
+import org.apache.jute.BinaryOutputArchive;
+import org.apache.zookeeper.CreateMode;
+import org.apache.zookeeper.KeeperException;
+import org.apache.zookeeper.Op;
+import org.apache.zookeeper.OpResult;
+import org.apache.zookeeper.ZooDefs;
+import org.apache.zookeeper.ZooKeeper;
+import org.apache.zookeeper.proto.CreateRequest;
+import org.apache.zookeeper.proto.GetDataRequest;
+import org.apache.zookeeper.server.quorum.QuorumPeer;
+import org.apache.zookeeper.server.quorum.QuorumZooKeeperServer;
+import org.apache.zookeeper.server.quorum.UpgradeableSessionTracker;
+import org.apache.zookeeper.test.QuorumBase;
+import org.junit.Assert;
+import org.junit.Test;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.nio.ByteBuffer;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
+public class MultiOpSessionUpgradeTest extends QuorumBase {
+protected static final Logger LOG = 
LoggerFactory.getLogger(MultiOpSessionUpgradeTest.class);
+
+@Override
+public void setUp() throws Exception {
+localSessionsEnabled = true;
+localSessionsUpgradingEnabled = true;
+super.setUp();
+}
+
+@Test
+public void ephemeralCreateMultiOpTest() throws KeeperException, 
InterruptedException, IOException {
+final ZooKeeper zk = createClient();
+
+String data = "test";
+String path = "/ephemeralcreatemultiop";
+zk.create(path, new byte[0], ZooDefs.Ids.OPEN_ACL_UNSAFE, 
CreateMode.PERSISTENT);
+
+QuorumZooKeeperServer server = 
getConnectedServer(zk.getSessionId());
+Assert.assertNotNull("unable to find server interlocutor", server);
+UpgradeableSessionTracker sessionTracker = 
(UpgradeableSessionTracker)server.getSessionTracker();
+Assert.assertFalse("session already global", 
sessionTracker.isGlobalSession(zk.getSessionId()));
+
+List multi = null;
+try {
+multi = zk.multi(Arrays.asList(
+Op.setData(path, data.getBytes(), 0),
+Op.create(path + "/e", data.getBytes(), 
ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.EPHEMERAL),
+Op.create(path + "/p", data.getBytes(), 
ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT),
+Op.create(path + "/q", data.getBytes(), 
ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.EPHEMERAL)
+));
+} catch (KeeperException.SessionExpiredException e) {
+// the scenario that inspired this unit test
+Assert.fail("received session expired for a session promotion 
in a multi-op");
+}
+
+Assert.assertNotNull(multi);
+Assert.assertEquals(4, multi.size());
+Assert.assertEquals(data, new String(zk.getData(path + "/e", 
false, null)));
+Assert.assertEquals(data, new String(zk.getData(path + "/p", 
false, null)));
+Assert.assertEquals(data, new String(zk.getData(path + "/q", 
false, null)));
+Assert.assertTrue("session not promoted", 
sessionTracker.isGlobalSession(zk.getSessionId()));
+}
+
+@Test
+public void directCheckUpgradeSessionTest() throws IOException, 
InterruptedException, KeeperException {
+final ZooKeeper zk = createClient();
+
+String path = "/directcheckupgradesession";
+zk.create(path, new byte[0], ZooDefs.Ids.OPEN_ACL_UNSAFE, 
CreateMode.PERSISTENT);
+
+

ZooKeeper_branch34 - Build # 1884 - Still Failing

2017-03-20 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper_branch34/1884/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 31.72 MB...]
[junit] 2017-03-21 00:20:18,086 [myid:] - INFO  
[main:PrepRequestProcessor@764] - Shutting down
[junit] 2017-03-21 00:20:18,086 [myid:] - INFO  
[main:SyncRequestProcessor@208] - Shutting down
[junit] 2017-03-21 00:20:18,087 [myid:] - INFO  [ProcessThread(sid:0 
cport:11221)::PrepRequestProcessor@143] - PrepRequestProcessor exited loop!
[junit] 2017-03-21 00:20:18,087 [myid:] - INFO  
[SyncThread:0:SyncRequestProcessor@186] - SyncRequestProcessor exited!
[junit] 2017-03-21 00:20:18,087 [myid:] - INFO  
[main:FinalRequestProcessor@402] - shutdown of request processor complete
[junit] 2017-03-21 00:20:18,088 [myid:] - INFO  
[main:FourLetterWordMain@62] - connecting to 127.0.0.1 11221
[junit] 2017-03-21 00:20:18,088 [myid:] - INFO  [main:JMXEnv@147] - 
ensureOnly:[]
[junit] 2017-03-21 00:20:18,090 [myid:] - INFO  [main:ClientBase@445] - 
STARTING server
[junit] 2017-03-21 00:20:18,090 [myid:] - INFO  [main:ClientBase@366] - 
CREATING server instance 127.0.0.1:11221
[junit] 2017-03-21 00:20:18,091 [myid:] - INFO  
[main:NIOServerCnxnFactory@89] - binding to port 0.0.0.0/0.0.0.0:11221
[junit] 2017-03-21 00:20:18,091 [myid:] - INFO  [main:ClientBase@341] - 
STARTING server instance 127.0.0.1:11221
[junit] 2017-03-21 00:20:18,092 [myid:] - INFO  [main:ZooKeeperServer@173] 
- Created server with tickTime 3000 minSessionTimeout 6000 maxSessionTimeout 
6 datadir 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34/build/test/tmp/test6592488468629384115.junit.dir/version-2
 snapdir 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34/build/test/tmp/test6592488468629384115.junit.dir/version-2
[junit] 2017-03-21 00:20:18,096 [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] 2017-03-21 00:20:18,096 [myid:] - INFO  
[main:FourLetterWordMain@62] - connecting to 127.0.0.1 11221
[junit] 2017-03-21 00:20:18,097 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxnFactory@192] - 
Accepted socket connection from /127.0.0.1:36142
[junit] 2017-03-21 00:20:18,097 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxn@883] - Processing 
stat command from /127.0.0.1:36142
[junit] 2017-03-21 00:20:18,098 [myid:] - INFO  
[Thread-4:NIOServerCnxn$StatCommand@674] - Stat command output
[junit] 2017-03-21 00:20:18,098 [myid:] - INFO  
[Thread-4:NIOServerCnxn@1044] - Closed socket connection for client 
/127.0.0.1:36142 (no session established for client)
[junit] 2017-03-21 00:20:18,098 [myid:] - INFO  [main:JMXEnv@230] - 
ensureParent:[InMemoryDataTree, StandaloneServer_port]
[junit] 2017-03-21 00:20:18,101 [myid:] - INFO  [main:JMXEnv@247] - 
expect:InMemoryDataTree
[junit] 2017-03-21 00:20:18,101 [myid:] - INFO  [main:JMXEnv@251] - 
found:InMemoryDataTree 
org.apache.ZooKeeperService:name0=StandaloneServer_port11221,name1=InMemoryDataTree
[junit] 2017-03-21 00:20:18,101 [myid:] - INFO  [main:JMXEnv@247] - 
expect:StandaloneServer_port
[junit] 2017-03-21 00:20:18,101 [myid:] - INFO  [main:JMXEnv@251] - 
found:StandaloneServer_port 
org.apache.ZooKeeperService:name0=StandaloneServer_port11221
[junit] 2017-03-21 00:20:18,102 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@58] - Memory used 35682
[junit] 2017-03-21 00:20:18,102 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@63] - Number of threads 20
[junit] 2017-03-21 00:20:18,102 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@78] - FINISHED TEST METHOD testQuota
[junit] 2017-03-21 00:20:18,103 [myid:] - INFO  [main:ClientBase@522] - 
tearDown starting
[junit] 2017-03-21 00:20:18,167 [myid:] - INFO  [main:ZooKeeper@684] - 
Session: 0x15aee3c5d87 closed
[junit] 2017-03-21 00:20:18,167 [myid:] - INFO  [main:ClientBase@492] - 
STOPPING server
[junit] 2017-03-21 00:20:18,167 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxnFactory@219] - 
NIOServerCnxn factory exited run method
[junit] 2017-03-21 00:20:18,167 [myid:] - INFO  [main:ZooKeeperServer@505] 
- shutting down
[junit] 2017-03-21 00:20:18,168 [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] 2017-03-21 00:20:18,168 [myid:] - INFO  
[main:SessionTrackerImpl@225] - Shutting down
[junit] 2017-03-21 00:20:18,168 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@519] - EventThread shut down for 
session: 0x15aee3c5d87
[junit] 2017-03-21 00:20:18,168 [myid:] - INFO  

ZooKeeper-trunk - Build # 3324 - Still Failing

2017-03-20 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper-trunk/3324/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 62.02 MB...]
[junit] 2017-03-20 23:26:31,783 [myid:] - INFO  [main:JMXEnv@149] - 
unexpected:org.apache.ZooKeeperService:name0=ReplicatedServer_id5,name1=replica.5,name2=Leader,name3=Connections,name4=127.0.0.1,name5=0x50317b8a99e0001
[junit] 2017-03-20 23:26:31,783 [myid:] - INFO  [main:ZKTestCase$1@73] - 
FAILED testWatcherAutoResetWithLocal
[junit] org.junit.internal.runners.model.MultipleFailureException: There 
were 2 errors:
[junit]   java.lang.AssertionError(Unexpected bean exists! expected:<0> but 
was:<1>)
[junit]   java.lang.AssertionError(expected:<0> but was:<1>)
[junit] at 
org.junit.runners.model.MultipleFailureException.assertEmpty(MultipleFailureException.java:67)
[junit] at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:39)
[junit] at org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:53)
[junit] at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
[junit] at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
[junit] at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
[junit] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
[junit] at 
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
[junit] at 
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
[junit] at 
org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
[junit] at 
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
[junit] at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
[junit] at org.junit.runners.Suite.runChild(Suite.java:128)
[junit] at org.junit.runners.Suite.runChild(Suite.java:27)
[junit] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
[junit] at 
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
[junit] at 
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
[junit] at 
org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
[junit] at 
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
[junit] at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
[junit] at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
[junit] at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
[junit] at 
junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:38)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:535)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1182)
[junit] at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1033)
[junit] 2017-03-20 23:26:31,784 [myid:] - INFO  [main:ZKTestCase$1@63] - 
FINISHED testWatcherAutoResetWithLocal
[junit] Tests run: 103, Failures: 14, Errors: 0, Skipped: 0, Time elapsed: 
446.169 sec, Thread: 7, Class: org.apache.zookeeper.test.NioNettySuiteTest
[junit] Test org.apache.zookeeper.test.NioNettySuiteTest FAILED

fail.build.on.test.failure:

BUILD FAILED
/home/jenkins/jenkins-slave/workspace/ZooKeeper-trunk/build.xml:1338: The 
following error occurred while executing this line:
/home/jenkins/jenkins-slave/workspace/ZooKeeper-trunk/build.xml:1219: The 
following error occurred while executing this line:
/home/jenkins/jenkins-slave/workspace/ZooKeeper-trunk/build.xml:1223: Tests 
failed!

Total time: 10 minutes 30 seconds
Build step 'Execute shell' marked build as failure
[FINDBUGS] Skipping publisher since build result is FAILURE
[WARNINGS] Skipping publisher since build result is FAILURE
Archiving artifacts
Setting JDK_1_7_LATEST__HOME=/home/jenkins/tools/java/latest1.7
Recording fingerprints
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
Publishing Javadoc
Setting JDK_1_7_LATEST__HOME=/home/jenkins/tools/java/latest1.7
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



###
## FAILED TESTS (if any) 
##
7 tests failed.
FAILED:  org.apache.zookeeper.test.WatcherTest.testWatchAutoResetWithPending

Error Message:
Unexpected 

ZooKeeper_branch34_jdk8 - Build # 926 - Still Failing

2017-03-20 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper_branch34_jdk8/926/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 31.69 MB...]
[junit] 2017-03-20 22:58:50,503 [myid:] - INFO  
[main:SessionTrackerImpl@225] - Shutting down
[junit] 2017-03-20 22:58:50,503 [myid:] - INFO  
[main:PrepRequestProcessor@764] - Shutting down
[junit] 2017-03-20 22:58:50,503 [myid:] - INFO  
[main:SyncRequestProcessor@208] - Shutting down
[junit] 2017-03-20 22:58:50,503 [myid:] - INFO  [ProcessThread(sid:0 
cport:11221)::PrepRequestProcessor@143] - PrepRequestProcessor exited loop!
[junit] 2017-03-20 22:58:50,503 [myid:] - INFO  
[SyncThread:0:SyncRequestProcessor@186] - SyncRequestProcessor exited!
[junit] 2017-03-20 22:58:50,503 [myid:] - INFO  
[main:FinalRequestProcessor@402] - shutdown of request processor complete
[junit] 2017-03-20 22:58:50,504 [myid:] - INFO  
[main:FourLetterWordMain@62] - connecting to 127.0.0.1 11221
[junit] 2017-03-20 22:58:50,504 [myid:] - INFO  [main:JMXEnv@147] - 
ensureOnly:[]
[junit] 2017-03-20 22:58:50,506 [myid:] - INFO  [main:ClientBase@445] - 
STARTING server
[junit] 2017-03-20 22:58:50,506 [myid:] - INFO  [main:ClientBase@366] - 
CREATING server instance 127.0.0.1:11221
[junit] 2017-03-20 22:58:50,506 [myid:] - INFO  
[main:NIOServerCnxnFactory@89] - binding to port 0.0.0.0/0.0.0.0:11221
[junit] 2017-03-20 22:58:50,507 [myid:] - INFO  [main:ClientBase@341] - 
STARTING server instance 127.0.0.1:11221
[junit] 2017-03-20 22:58:50,507 [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/test9104172771975967122.junit.dir/version-2
 snapdir 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34_jdk8/build/test/tmp/test9104172771975967122.junit.dir/version-2
[junit] 2017-03-20 22:58:50,509 [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] 2017-03-20 22:58:50,510 [myid:] - INFO  
[main:FourLetterWordMain@62] - connecting to 127.0.0.1 11221
[junit] 2017-03-20 22:58:50,510 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxnFactory@192] - 
Accepted socket connection from /127.0.0.1:44782
[junit] 2017-03-20 22:58:50,511 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxn@883] - Processing 
stat command from /127.0.0.1:44782
[junit] 2017-03-20 22:58:50,511 [myid:] - INFO  
[Thread-4:NIOServerCnxn$StatCommand@674] - Stat command output
[junit] 2017-03-20 22:58:50,511 [myid:] - INFO  
[Thread-4:NIOServerCnxn@1044] - Closed socket connection for client 
/127.0.0.1:44782 (no session established for client)
[junit] 2017-03-20 22:58:50,511 [myid:] - INFO  [main:JMXEnv@230] - 
ensureParent:[InMemoryDataTree, StandaloneServer_port]
[junit] 2017-03-20 22:58:50,513 [myid:] - INFO  [main:JMXEnv@247] - 
expect:InMemoryDataTree
[junit] 2017-03-20 22:58:50,513 [myid:] - INFO  [main:JMXEnv@251] - 
found:InMemoryDataTree 
org.apache.ZooKeeperService:name0=StandaloneServer_port11221,name1=InMemoryDataTree
[junit] 2017-03-20 22:58:50,514 [myid:] - INFO  [main:JMXEnv@247] - 
expect:StandaloneServer_port
[junit] 2017-03-20 22:58:50,514 [myid:] - INFO  [main:JMXEnv@251] - 
found:StandaloneServer_port 
org.apache.ZooKeeperService:name0=StandaloneServer_port11221
[junit] 2017-03-20 22:58:50,514 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@58] - Memory used 35519
[junit] 2017-03-20 22:58:50,514 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@63] - Number of threads 20
[junit] 2017-03-20 22:58:50,514 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@78] - FINISHED TEST METHOD testQuota
[junit] 2017-03-20 22:58:50,515 [myid:] - INFO  [main:ClientBase@522] - 
tearDown starting
[junit] 2017-03-20 22:58:50,588 [myid:] - INFO  [main:ZooKeeper@684] - 
Session: 0x15aedf1c979 closed
[junit] 2017-03-20 22:58:50,588 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@519] - EventThread shut down for 
session: 0x15aedf1c979
[junit] 2017-03-20 22:58:50,589 [myid:] - INFO  [main:ClientBase@492] - 
STOPPING server
[junit] 2017-03-20 22:58:50,589 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxnFactory@219] - 
NIOServerCnxn factory exited run method
[junit] 2017-03-20 22:58:50,589 [myid:] - INFO  [main:ZooKeeperServer@505] 
- shutting down
[junit] 2017-03-20 22:58:50,590 [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] 2017-03-20 22:58:50,590 

[jira] [Commented] (ZOOKEEPER-236) SSL Support for Atomic Broadcast protocol

2017-03-20 Thread Abraham Fine (JIRA)

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

Abraham Fine commented on ZOOKEEPER-236:


[~geek101]-

You are correct. Apparently java doesn't do a reverse dns lookup by default. I 
had the IP address to be included as a subjectAltName of the client's 
certificate, so I didn't notice this failure. So I pushed an update with a 
subclass to {{X509ExtendedTrustManager}}:

{code}
for (final TrustManager tm : tmf.getTrustManagers()) {
if (tm instanceof X509TrustManager) {
return new X509ExtendedTrustManager() {
HostnameChecker hostnameChecker = 
HostnameChecker.getInstance(HostnameChecker.TYPE_TLS);

@Override
public X509Certificate[] getAcceptedIssuers() {
return ((X509ExtendedTrustManager) 
tm).getAcceptedIssuers();
}

@Override
public void checkClientTrusted(X509Certificate[] 
x509Certificates, String s, Socket socket) throws CertificateException {

hostnameChecker.match(socket.getInetAddress().getHostName(), 
x509Certificates[0]);
((X509ExtendedTrustManager) 
tm).checkClientTrusted(x509Certificates, s, socket);
}

@Override
public void checkServerTrusted(X509Certificate[] 
x509Certificates, String s, Socket socket) throws CertificateException {
hostnameChecker.match(((SSLSocket) 
socket).getHandshakeSession().getPeerHost(), x509Certificates[0]);
((X509ExtendedTrustManager) 
tm).checkServerTrusted(x509Certificates, s, socket);
}
{code}

We do a reverse dns lookup when a client is connecting to the server. This 
works. The primary issue I see is that import sun.security.util.HostnameChecker 
is proprietary and throws a compile warning.
{code}
[javac] 
/Users/abefine/cloudera_code/zookeeper/src/java/main/org/apache/zookeeper/common/X509Util.java:26:
 warning: HostnameChecker is internal proprietary API and may be removed in a 
future release
[javac] import sun.security.util.HostnameChecker;
{code}

I'm not sure if it is the preference of the community to copy the code 
contained in HostnameChecker, add a dependency with similar functionality, or 
leave it as is. The issue is described clearly here 
https://kevinlocke.name/bits/2012/10/03/ssl-certificate-verification-in-dispatch-and-asynchttpclient/:
{quote}
To make matters worse, the check is not trivial (consider SAN and wildcard 
matching) and is implemented in sun.security.util.HostnameChecker (a Sun 
internal proprietary API). This leaves the developer in the position of either 
depending on an internal API or finding/copying/creating another implementation 
of this functionality. For the examples in this article, I have opted for the 
first option.
{quote}

Thanks,
Abe

> SSL Support for Atomic Broadcast protocol
> -
>
> Key: ZOOKEEPER-236
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-236
> Project: ZooKeeper
>  Issue Type: New Feature
>  Components: quorum, server
>Reporter: Benjamin Reed
>Assignee: Abraham Fine
>Priority: Minor
>
> We should have the ability to use SSL to authenticate and encrypt the traffic 
> between ZooKeeper servers. For the most part this is a very easy change. We 
> would probably only want to support this for TCP based leader elections.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


Failed: ZOOKEEPER- PreCommit Build #463

2017-03-20 Thread Apache Jenkins Server
Build: https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/463/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 3.12 KB...]
 [exec] Pull request id: 184
 [exec] Pull request title: ZOOKEEPER-236: SSL Support for Atomic Broadcast 
protocol [DO NOT MERGE]
 [exec] Defect number: ZOOKEEPER-236
 [exec] - Parsed args, going to checkout -
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec] Testing patch for pull request 184.
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec] 
 [exec]   % Total% Received % Xferd  Average Speed   TimeTime 
Time  Current
 [exec]  Dload  Upload   Total   Spent
Left  Speed
 [exec] 
 [exec]   0 00 00 0  0  0 --:--:-- --:--:-- 
--:--:-- 0  0 00 00 0  0  0 --:--:-- --:--:-- 
--:--:-- 0100   1410   1410 0343  0 --:--:-- --:--:-- 
--:--:--   343
 [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 439830 0  41534  0 --:--:--  0:00:01 
--:--:-- 41534mv: 
'/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:1642:
 exec returned: 1

Total time: 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
ERROR: Step ?Publish JUnit test result report? failed: No test report files 
were found. Configuration error?
Setting JDK_1_7_LATEST__HOME=/home/jenkins/tools/java/latest1.7
[description-setter] Description set: ZOOKEEPER-236
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) 
##
No tests ran.

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

2017-03-20 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper-trunk-openjdk7/1408/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 62.42 MB...]
[junit] at java.lang.Thread.run(Thread.java:745)
[junit] 2017-03-20 20:02:16,295 [myid:] - INFO  
[SyncThread:0:MBeanRegistry@128] - Unregister MBean 
[org.apache.ZooKeeperService:name0=StandaloneServer_port22240,name1=Connections,name2=127.0.0.1,name3=0x1031843c5ee]
[junit] 2017-03-20 20:02:16,395 [myid:] - INFO  [main:ZooKeeper@1324] - 
Session: 0x1031843c5ee closed
[junit] 2017-03-20 20:02:16,395 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@82] - Memory used 230800
[junit] 2017-03-20 20:02:16,395 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@513] - EventThread shut down for 
session: 0x1031843c5ee
[junit] 2017-03-20 20:02:16,396 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@87] - Number of threads 2427
[junit] 2017-03-20 20:02:16,396 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@102] - FINISHED TEST METHOD 
testWatcherAutoResetWithLocal
[junit] 2017-03-20 20:02:16,396 [myid:] - INFO  [main:ClientBase@558] - 
tearDown starting
[junit] 2017-03-20 20:02:16,396 [myid:] - INFO  [main:ClientBase@528] - 
STOPPING server
[junit] 2017-03-20 20:02:16,397 [myid:] - INFO  
[main:NettyServerCnxnFactory@464] - shutdown called 0.0.0.0/0.0.0.0:22240
[junit] 2017-03-20 20:02:16,405 [myid:] - INFO  [main:ZooKeeperServer@542] 
- shutting down
[junit] 2017-03-20 20:02:16,405 [myid:] - ERROR [main:ZooKeeperServer@506] 
- ZKShutdownHandler is not registered, so ZooKeeper server won't take any 
action on ERROR or SHUTDOWN server state changes
[junit] 2017-03-20 20:02:16,405 [myid:] - INFO  
[main:SessionTrackerImpl@232] - Shutting down
[junit] 2017-03-20 20:02:16,406 [myid:] - INFO  
[main:PrepRequestProcessor@1008] - Shutting down
[junit] 2017-03-20 20:02:16,406 [myid:] - INFO  
[main:SyncRequestProcessor@191] - Shutting down
[junit] 2017-03-20 20:02:16,406 [myid:] - INFO  [ProcessThread(sid:0 
cport:22240)::PrepRequestProcessor@157] - PrepRequestProcessor exited loop!
[junit] 2017-03-20 20:02:16,406 [myid:] - INFO  
[SyncThread:0:SyncRequestProcessor@169] - SyncRequestProcessor exited!
[junit] 2017-03-20 20:02:16,414 [myid:] - INFO  
[main:FinalRequestProcessor@481] - shutdown of request processor complete
[junit] 2017-03-20 20:02:16,414 [myid:] - INFO  [main:MBeanRegistry@128] - 
Unregister MBean 
[org.apache.ZooKeeperService:name0=StandaloneServer_port22240,name1=InMemoryDataTree]
[junit] 2017-03-20 20:02:16,415 [myid:] - INFO  [main:MBeanRegistry@128] - 
Unregister MBean [org.apache.ZooKeeperService:name0=StandaloneServer_port22240]
[junit] 2017-03-20 20:02:16,458 [myid:] - INFO  
[main:FourLetterWordMain@85] - connecting to 127.0.0.1 22240
[junit] 2017-03-20 20:02:16,459 [myid:] - INFO  [main:JMXEnv@146] - 
ensureOnly:[]
[junit] 2017-03-20 20:02:16,471 [myid:] - INFO  [main:ClientBase@583] - 
fdcount after test is: 7126 at start it was 7126
[junit] 2017-03-20 20:02:16,471 [myid:] - INFO  [main:ZKTestCase$1@68] - 
SUCCEEDED testWatcherAutoResetWithLocal
[junit] 2017-03-20 20:02:16,471 [myid:] - INFO  [main:ZKTestCase$1@63] - 
FINISHED testWatcherAutoResetWithLocal
[junit] Tests run: 103, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
488.325 sec, Thread: 5, Class: org.apache.zookeeper.test.NioNettySuiteTest
[junit] 2017-03-20 20:02:16,499 [myid:127.0.0.1:22117] - INFO  
[main-SendThread(127.0.0.1:22117):ClientCnxn$SendThread@1113] - Opening socket 
connection to server 127.0.0.1/127.0.0.1:22117. Will not attempt to 
authenticate using SASL (unknown error)
[junit] 2017-03-20 20:02:16,500 [myid:127.0.0.1:22117] - WARN  
[main-SendThread(127.0.0.1:22117):ClientCnxn$SendThread@1235] - Session 
0x103184059aa for server 127.0.0.1/127.0.0.1:22117, 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:739)
[junit] at 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:357)
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1214)
[junit] 2017-03-20 20:02:16,825 [myid:127.0.0.1:22120] - INFO  
[main-SendThread(127.0.0.1:22120):ClientCnxn$SendThread@1113] - Opening socket 
connection to server 127.0.0.1/127.0.0.1:22120. Will not attempt to 
authenticate using SASL (unknown error)
[junit] 2017-03-20 20:02:16,826 [myid:127.0.0.1:22120] - WARN  
[main-SendThread(127.0.0.1:22120):ClientCnxn$SendThread@1235] - Session 
0x20318405d8b for server 127.0.0.1/127.0.0.1:22120, 

Failed: ZOOKEEPER- PreCommit Build #462

2017-03-20 Thread Apache Jenkins Server
Build: https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/462/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 3.09 KB...]
 [exec] Pull request id: 195
 [exec] Pull request title: ZOOKEEPER-2725: Promote local session to global 
when ephemeral created in multi-op
 [exec] Defect number: ZOOKEEPER-2725
 [exec] - Parsed args, going to checkout -
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec] Testing patch for pull request 195.
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec] 
 [exec]   % Total% Received % Xferd  Average Speed   TimeTime 
Time  Current
 [exec]  Dload  Upload   Total   Spent
Left  Speed
 [exec] 
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec]  Pre-build trunk to verify trunk stability and javac warnings
 [exec]   0 00 00 0  0  0 --:--:-- --:--:-- 
--:--:-- 0100   1410   1410 0304  0 --:--:-- --:--:-- 
--:--:--   
305==
 [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 00 0  0  0 --:--:--  0:00:01 
--:--:-- 0  0 00 100140 0   9457  0 --:--:--  0:00:01 
--:--:-- 3259kmv: 
‘/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:1642:
 exec returned: 1

Total time: 18 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
ERROR: Step ‘Publish JUnit test result report’ failed: No test report files 
were found. Configuration error?
Setting JDK_1_7_LATEST__HOME=/home/jenkins/tools/java/latest1.7
[description-setter] Description set: ZOOKEEPER-2725
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) 
##
No tests ran.

[jira] [Commented] (ZOOKEEPER-2725) Upgrading to a global session fails with a multiop

2017-03-20 Thread ASF GitHub Bot (JIRA)

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

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

Github user enixon commented on the issue:

https://github.com/apache/zookeeper/pull/195
  
Proposed changes sound good, addressed with additional commit


> Upgrading to a global session fails with a multiop
> --
>
> Key: ZOOKEEPER-2725
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2725
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: server
>Affects Versions: 3.5.2
>Reporter: Brian Nixon
>
> On an ensemble with local sessions enabled, when a client with a local 
> session requests the creation of an ephemeral node within a multi-op, the 
> client gets a session expired message.  The same multi-op works if the 
> session is already global. This breaks the client's expectation of seamless 
> promotion from local session to global session server-side. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[GitHub] zookeeper issue #195: ZOOKEEPER-2725: Promote local session to global when e...

2017-03-20 Thread enixon
Github user enixon commented on the issue:

https://github.com/apache/zookeeper/pull/195
  
Proposed changes sound good, addressed with additional commit


---
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.
---


Snapshot build please?

2017-03-20 Thread Jordan Zimmerman
If you don't mind, can a committer please make a snapshot build of 3.5 
(branch-3.5) and deploy it to Maven Central? I'd like to work on the Curator 
portion of TTL Nodes.

Thank you!

-Jordan

ZooKeeper_branch34_openjdk7 - Build # 1435 - Still Failing

2017-03-20 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper_branch34_openjdk7/1435/

###
## LAST 60 LINES OF THE CONSOLE 
###
Started by timer
[EnvInject] - Loading node environment variables.
Building remotely on H15 (ubuntu) in workspace 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34_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 fetch --tags --progress git://git.apache.org/zookeeper.git 
 > +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/branch-3.4^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/branch-3.4^{commit} # timeout=10
Checking out Revision 902bee6410a565aef59ab6b9834fa9e1ead3a742 
(refs/remotes/origin/branch-3.4)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 902bee6410a565aef59ab6b9834fa9e1ead3a742
 > git rev-list 902bee6410a565aef59ab6b9834fa9e1ead3a742 # timeout=10
No emails were triggered.
[ZooKeeper_branch34_openjdk7] $ 
/home/jenkins/tools/ant/apache-ant-1.9.9/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-trunk-jdk8 - Build # 984 - Still Failing

2017-03-20 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper-trunk-jdk8/984/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 62.74 MB...]
[junit] java.net.ConnectException: Connection refused
[junit] at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
[junit] at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
[junit] at 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:357)
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1214)
[junit] 2017-03-20 15:01:02,125 [myid:127.0.0.1:30202] - INFO  
[main-SendThread(127.0.0.1:30202):ClientCnxn$SendThread@1113] - Opening socket 
connection to server 127.0.0.1/127.0.0.1:30202. Will not attempt to 
authenticate using SASL (unknown error)
[junit] 2017-03-20 15:01:02,125 [myid:127.0.0.1:30202] - WARN  
[main-SendThread(127.0.0.1:30202):ClientCnxn$SendThread@1235] - Session 
0x303176b70a4 for server 127.0.0.1/127.0.0.1:30202, 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:717)
[junit] at 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:357)
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1214)
[junit] 2017-03-20 15:01:02,340 [myid:127.0.0.1:30073] - INFO  
[main-SendThread(127.0.0.1:30073):ClientCnxn$SendThread@1113] - Opening socket 
connection to server 127.0.0.1/127.0.0.1:30073. Will not attempt to 
authenticate using SASL (unknown error)
[junit] 2017-03-20 15:01:02,341 [myid:127.0.0.1:30073] - WARN  
[main-SendThread(127.0.0.1:30073):ClientCnxn$SendThread@1235] - Session 
0x10317677f0a for server 127.0.0.1/127.0.0.1:30073, 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:717)
[junit] at 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:357)
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1214)
[junit] 2017-03-20 15:01:02,363 [myid:] - INFO  [ProcessThread(sid:0 
cport:30319)::PrepRequestProcessor@617] - Processed session termination for 
sessionid: 0x103176ed7e3
[junit] 2017-03-20 15:01:02,365 [myid:] - INFO  
[SyncThread:0:MBeanRegistry@128] - Unregister MBean 
[org.apache.ZooKeeperService:name0=StandaloneServer_port30319,name1=Connections,name2=127.0.0.1,name3=0x103176ed7e3]
[junit] 2017-03-20 15:01:02,365 [myid:] - INFO  [main:ZooKeeper@1324] - 
Session: 0x103176ed7e3 closed
[junit] 2017-03-20 15:01:02,365 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@82] - Memory used 220069
[junit] 2017-03-20 15:01:02,365 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@513] - EventThread shut down for 
session: 0x103176ed7e3
[junit] 2017-03-20 15:01:02,365 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@87] - Number of threads 2429
[junit] 2017-03-20 15:01:02,366 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@102] - FINISHED TEST METHOD 
testWatcherAutoResetWithLocal
[junit] 2017-03-20 15:01:02,366 [myid:] - INFO  [main:ClientBase@558] - 
tearDown starting
[junit] 2017-03-20 15:01:02,366 [myid:] - INFO  [main:ClientBase@528] - 
STOPPING server
[junit] 2017-03-20 15:01:02,366 [myid:] - INFO  
[main:NettyServerCnxnFactory@464] - shutdown called 0.0.0.0/0.0.0.0:30319
[junit] 2017-03-20 15:01:02,373 [myid:] - INFO  [main:ZooKeeperServer@542] 
- shutting down
[junit] 2017-03-20 15:01:02,373 [myid:] - ERROR [main:ZooKeeperServer@506] 
- ZKShutdownHandler is not registered, so ZooKeeper server won't take any 
action on ERROR or SHUTDOWN server state changes
[junit] 2017-03-20 15:01:02,373 [myid:] - INFO  
[main:SessionTrackerImpl@232] - Shutting down
[junit] 2017-03-20 15:01:02,374 [myid:] - INFO  
[main:PrepRequestProcessor@1008] - Shutting down
[junit] 2017-03-20 15:01:02,374 [myid:] - INFO  
[main:SyncRequestProcessor@191] - Shutting down
[junit] 2017-03-20 15:01:02,374 [myid:] - INFO  
[SyncThread:0:SyncRequestProcessor@169] - SyncRequestProcessor exited!
[junit] 2017-03-20 15:01:02,374 [myid:] - INFO  [ProcessThread(sid:0 
cport:30319)::PrepRequestProcessor@157] - PrepRequestProcessor exited loop!
[junit] 2017-03-20 15:01:02,374 [myid:] - INFO  
[main:FinalRequestProcessor@481] - shutdown of request processor complete
[junit] 2017-03-20 15:01:02,375 [myid:] - 

ZooKeeper_branch35_jdk8 - Build # 463 - Failure

2017-03-20 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper_branch35_jdk8/463/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 62.19 MB...]
[junit] 2017-03-20 14:44:56,861 [myid:] - INFO  
[SessionTracker:SessionTrackerImpl@158] - SessionTrackerImpl exited loop!
[junit] 2017-03-20 14:44:56,927 [myid:127.0.0.1:22240] - INFO  
[main-SendThread(127.0.0.1:22240):ClientCnxn$SendThread@1113] - Opening socket 
connection to server 127.0.0.1/127.0.0.1:22240. Will not attempt to 
authenticate using SASL (unknown error)
[junit] 2017-03-20 14:44:56,928 [myid:127.0.0.1:22240] - INFO  
[main-SendThread(127.0.0.1:22240):ClientCnxn$SendThread@948] - Socket 
connection established, initiating session, client: /127.0.0.1:42674, server: 
127.0.0.1/127.0.0.1:22240
[junit] 2017-03-20 14:44:56,928 [myid:] - INFO  [New I/O worker 
#9949:ZooKeeperServer@1018] - Client attempting to renew session 
0x10317602028 at /127.0.0.1:42674
[junit] 2017-03-20 14:44:56,939 [myid:] - INFO  [New I/O worker 
#9949:ZooKeeperServer@727] - Established session 0x10317602028 with 
negotiated timeout 6000 for client /127.0.0.1:42674
[junit] 2017-03-20 14:44:56,939 [myid:127.0.0.1:22240] - INFO  
[main-SendThread(127.0.0.1:22240):ClientCnxn$SendThread@1381] - Session 
establishment complete on server 127.0.0.1/127.0.0.1:22240, sessionid = 
0x10317602028, negotiated timeout = 6000
[junit] 2017-03-20 14:44:56,946 [myid:] - INFO  
[SyncThread:0:FileTxnLog@204] - Creating new log file: log.7
[junit] 2017-03-20 14:44:56,957 [myid:127.0.0.1:22123] - INFO  
[main-SendThread(127.0.0.1:22123):ClientCnxn$SendThread@1113] - Opening socket 
connection to server 127.0.0.1/127.0.0.1:22123. Will not attempt to 
authenticate using SASL (unknown error)
[junit] 2017-03-20 14:44:56,958 [myid:127.0.0.1:22123] - WARN  
[main-SendThread(127.0.0.1:22123):ClientCnxn$SendThread@1235] - Session 
0x303175cc73f for server 127.0.0.1/127.0.0.1:22123, 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:717)
[junit] at 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:357)
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1214)
[junit] 2017-03-20 14:44:57,605 [myid:127.0.0.1:22117] - INFO  
[main-SendThread(127.0.0.1:22117):ClientCnxn$SendThread@1113] - Opening socket 
connection to server 127.0.0.1/127.0.0.1:22117. Will not attempt to 
authenticate using SASL (unknown error)
[junit] 2017-03-20 14:44:57,606 [myid:127.0.0.1:22117] - WARN  
[main-SendThread(127.0.0.1:22117):ClientCnxn$SendThread@1235] - Session 
0x103175cc77e for server 127.0.0.1/127.0.0.1:22117, 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:717)
[junit] at 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:357)
[junit] at 
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1214)
[junit] 2017-03-20 14:44:57,968 [myid:] - INFO  [ProcessThread(sid:0 
cport:22240)::PrepRequestProcessor@613] - Processed session termination for 
sessionid: 0x10317602028
[junit] 2017-03-20 14:44:57,969 [myid:] - INFO  
[SyncThread:0:MBeanRegistry@128] - Unregister MBean 
[org.apache.ZooKeeperService:name0=StandaloneServer_port22240,name1=Connections,name2=127.0.0.1,name3=0x10317602028]
[junit] 2017-03-20 14:44:57,969 [myid:] - INFO  [main:ZooKeeper@1326] - 
Session: 0x10317602028 closed
[junit] 2017-03-20 14:44:57,970 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@82] - Memory used 215131
[junit] 2017-03-20 14:44:57,970 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@87] - Number of threads 2428
[junit] 2017-03-20 14:44:57,970 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@102] - FINISHED TEST METHOD 
testWatcherAutoResetWithLocal
[junit] 2017-03-20 14:44:57,970 [myid:] - INFO  [main:ClientBase@543] - 
tearDown starting
[junit] 2017-03-20 14:44:57,970 [myid:] - INFO  [main:ClientBase@513] - 
STOPPING server
[junit] 2017-03-20 14:44:57,971 [myid:] - INFO  
[main:NettyServerCnxnFactory@464] - shutdown called 0.0.0.0/0.0.0.0:22240
[junit] 2017-03-20 14:44:57,969 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@513] - EventThread shut down for 
session: 0x10317602028
[junit] 2017-03-20 14:44:57,978 [myid:] - INFO  [main:ZooKeeperServer@541] 
- shutting down
 

ZooKeeper_branch35_openjdk7 - Build # 462 - Still Failing

2017-03-20 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper_branch35_openjdk7/462/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 64.47 MB...]
[junit] 2017-03-20 10:10:55,417 [myid:] - INFO  
[main:SessionTrackerImpl@232] - Shutting down
[junit] 2017-03-20 10:10:55,417 [myid:] - INFO  
[main:PrepRequestProcessor@1004] - Shutting down
[junit] 2017-03-20 10:10:55,417 [myid:] - INFO  
[main:SyncRequestProcessor@191] - Shutting down
[junit] 2017-03-20 10:10:55,417 [myid:] - INFO  [ProcessThread(sid:0 
cport:19547)::PrepRequestProcessor@156] - PrepRequestProcessor exited loop!
[junit] 2017-03-20 10:10:55,417 [myid:] - INFO  
[SyncThread:0:SyncRequestProcessor@169] - SyncRequestProcessor exited!
[junit] 2017-03-20 10:10:55,417 [myid:] - INFO  
[main:FinalRequestProcessor@481] - shutdown of request processor complete
[junit] 2017-03-20 10:10:55,417 [myid:] - INFO  [main:MBeanRegistry@128] - 
Unregister MBean 
[org.apache.ZooKeeperService:name0=StandaloneServer_port19547,name1=InMemoryDataTree]
[junit] 2017-03-20 10:10:55,417 [myid:] - INFO  [main:MBeanRegistry@128] - 
Unregister MBean [org.apache.ZooKeeperService:name0=StandaloneServer_port19547]
[junit] 2017-03-20 10:10:55,418 [myid:] - INFO  
[main:FourLetterWordMain@85] - connecting to 127.0.0.1 19547
[junit] 2017-03-20 10:10:55,418 [myid:] - INFO  [main:JMXEnv@146] - 
ensureOnly:[]
[junit] 2017-03-20 10:10:55,421 [myid:] - INFO  [main:ClientBase@568] - 
fdcount after test is: 1472 at start it was 1472
[junit] 2017-03-20 10:10:55,421 [myid:] - INFO  [main:ZKTestCase$1@68] - 
SUCCEEDED testWatcherAutoResetWithLocal
[junit] 2017-03-20 10:10:55,421 [myid:] - INFO  [main:ZKTestCase$1@63] - 
FINISHED testWatcherAutoResetWithLocal
[junit] Tests run: 103, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
561.864 sec, Thread: 4, Class: org.apache.zookeeper.test.NettyNettySuiteTest
[junit] 2017-03-20 10:10:55,561 [myid:127.0.0.1:19430] - INFO  
[main-SendThread(127.0.0.1:19430):ClientCnxn$SendThread@1113] - Opening socket 
connection to server 127.0.0.1/127.0.0.1:19430. Will not attempt to 
authenticate using SASL (unknown error)
[junit] 2017-03-20 10:10:55,562 [myid:] - INFO  [New I/O boss 
#2781:ClientCnxnSocketNetty$1@127] - future isn't success, cause: {}
[junit] java.net.ConnectException: Connection refused: 
127.0.0.1/127.0.0.1:19430
[junit] at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
[junit] at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
[junit] at 
org.jboss.netty.channel.socket.nio.NioClientBoss.connect(NioClientBoss.java:152)
[junit] at 
org.jboss.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:105)
[junit] at 
org.jboss.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:79)
[junit] at 
org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337)
[junit] at 
org.jboss.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42)
[junit] at 
org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
[junit] at 
org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
[junit] at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[junit] at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[junit] at java.lang.Thread.run(Thread.java:745)
[junit] 2017-03-20 10:10:55,562 [myid:] - WARN  [New I/O boss 
#2781:ClientCnxnSocketNetty$ZKClientHandler@439] - Exception caught: [id: 
0x23b473b2] EXCEPTION: java.net.ConnectException: Connection refused: 
127.0.0.1/127.0.0.1:19430
[junit] java.net.ConnectException: Connection refused: 
127.0.0.1/127.0.0.1:19430
[junit] at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
[junit] at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
[junit] at 
org.jboss.netty.channel.socket.nio.NioClientBoss.connect(NioClientBoss.java:152)
[junit] at 
org.jboss.netty.channel.socket.nio.NioClientBoss.processSelectedKeys(NioClientBoss.java:105)
[junit] at 
org.jboss.netty.channel.socket.nio.NioClientBoss.process(NioClientBoss.java:79)
[junit] at 
org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337)
[junit] at 
org.jboss.netty.channel.socket.nio.NioClientBoss.run(NioClientBoss.java:42)
[junit] at 
org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
[junit] at 
org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
[junit] at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[junit] at 

[jira] [Commented] (ZOOKEEPER-2712) MiniKdc test case intermittently failing due to principal not found in Kerberos database

2017-03-20 Thread Rakesh R (JIRA)

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

Rakesh R commented on ZOOKEEPER-2712:
-

FYI, I've raised issue ZOOKEEPER-2728 to cleanup {{br-3.4}} findbugs warnings.

> MiniKdc test case intermittently failing due to principal not found in 
> Kerberos database
> 
>
> Key: ZOOKEEPER-2712
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2712
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: tests
>Reporter: Rakesh R
>Assignee: Rakesh R
>Priority: Critical
> Fix For: 3.4.10
>
> Attachments: 
> TEST-org.apache.zookeeper.server.quorum.auth.QuorumKerberosAuthTest.txt
>
>
> MiniKdc test cases are intermittently failing due to not finding the 
> principal. Below is the failure stacktrace.
> {code}
> 2017-03-08 13:21:10,843 [myid:] - ERROR 
> [NioProcessor-1:AuthenticationService@187] - Error while searching for client 
> lear...@example.com : Client not found in Kerberos database
> 2017-03-08 13:21:10,843 [myid:] - WARN  
> [NioProcessor-2:KerberosProtocolHandler@241] - Server not found in Kerberos 
> database (7)
> 2017-03-08 13:21:10,845 [myid:] - WARN  
> [NioProcessor-2:KerberosProtocolHandler@242] - Server not found in Kerberos 
> database (7)
> 2017-03-08 13:21:10,844 [myid:] - WARN  
> [NioProcessor-1:KerberosProtocolHandler@241] - Client not found in Kerberos 
> database (6)
> 2017-03-08 13:21:10,845 [myid:] - WARN  
> [NioProcessor-1:KerberosProtocolHandler@242] - Client not found in Kerberos 
> database (6)
> {code}
> Will attach the detailed log to jira.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)