ZooKeeper_branch34_jdk7 - Build # 1275 - Still Failing

2016-10-27 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper_branch34_jdk7/1275/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 190018 lines...]
[junit] 2016-10-28 03:22:37,796 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxnFactory@219] - 
NIOServerCnxn factory exited run method
[junit] 2016-10-28 03:22:37,796 [myid:] - INFO  [main:ZooKeeperServer@497] 
- shutting down
[junit] 2016-10-28 03:22:37,796 [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-10-28 03:22:37,796 [myid:] - INFO  
[main:SessionTrackerImpl@225] - Shutting down
[junit] 2016-10-28 03:22:37,796 [myid:] - INFO  
[main:PrepRequestProcessor@765] - Shutting down
[junit] 2016-10-28 03:22:37,797 [myid:] - INFO  
[main:SyncRequestProcessor@208] - Shutting down
[junit] 2016-10-28 03:22:37,797 [myid:] - INFO  [ProcessThread(sid:0 
cport:11221)::PrepRequestProcessor@143] - PrepRequestProcessor exited loop!
[junit] 2016-10-28 03:22:37,797 [myid:] - INFO  
[SyncThread:0:SyncRequestProcessor@186] - SyncRequestProcessor exited!
[junit] 2016-10-28 03:22:37,797 [myid:] - INFO  
[main:FinalRequestProcessor@402] - shutdown of request processor complete
[junit] 2016-10-28 03:22:37,798 [myid:] - INFO  
[main:FourLetterWordMain@62] - connecting to 127.0.0.1 11221
[junit] 2016-10-28 03:22:37,798 [myid:] - INFO  [main:JMXEnv@146] - 
ensureOnly:[]
[junit] 2016-10-28 03:22:37,800 [myid:] - INFO  [main:ClientBase@445] - 
STARTING server
[junit] 2016-10-28 03:22:37,800 [myid:] - INFO  [main:ClientBase@366] - 
CREATING server instance 127.0.0.1:11221
[junit] 2016-10-28 03:22:37,800 [myid:] - INFO  
[main:NIOServerCnxnFactory@89] - binding to port 0.0.0.0/0.0.0.0:11221
[junit] 2016-10-28 03:22:37,800 [myid:] - INFO  [main:ClientBase@341] - 
STARTING server instance 127.0.0.1:11221
[junit] 2016-10-28 03:22:37,801 [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/test1020485247524880057.junit.dir/version-2
 snapdir 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34_jdk7/build/test/tmp/test1020485247524880057.junit.dir/version-2
[junit] 2016-10-28 03:22:37,804 [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-10-28 03:22:37,804 [myid:] - INFO  
[main:FourLetterWordMain@62] - connecting to 127.0.0.1 11221
[junit] 2016-10-28 03:22:37,804 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxnFactory@192] - 
Accepted socket connection from /127.0.0.1:59138
[junit] 2016-10-28 03:22:37,805 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxn@827] - Processing 
stat command from /127.0.0.1:59138
[junit] 2016-10-28 03:22:37,805 [myid:] - INFO  
[Thread-4:NIOServerCnxn$StatCommand@663] - Stat command output
[junit] 2016-10-28 03:22:37,805 [myid:] - INFO  
[Thread-4:NIOServerCnxn@1008] - Closed socket connection for client 
/127.0.0.1:59138 (no session established for client)
[junit] 2016-10-28 03:22:37,805 [myid:] - INFO  [main:JMXEnv@229] - 
ensureParent:[InMemoryDataTree, StandaloneServer_port]
[junit] 2016-10-28 03:22:37,807 [myid:] - INFO  [main:JMXEnv@246] - 
expect:InMemoryDataTree
[junit] 2016-10-28 03:22:37,807 [myid:] - INFO  [main:JMXEnv@250] - 
found:InMemoryDataTree 
org.apache.ZooKeeperService:name0=StandaloneServer_port11221,name1=InMemoryDataTree
[junit] 2016-10-28 03:22:37,807 [myid:] - INFO  [main:JMXEnv@246] - 
expect:StandaloneServer_port
[junit] 2016-10-28 03:22:37,808 [myid:] - INFO  [main:JMXEnv@250] - 
found:StandaloneServer_port 
org.apache.ZooKeeperService:name0=StandaloneServer_port11221
[junit] 2016-10-28 03:22:37,808 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@58] - Memory used 32605
[junit] 2016-10-28 03:22:37,808 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@63] - Number of threads 20
[junit] 2016-10-28 03:22:37,808 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@78] - FINISHED TEST METHOD testQuota
[junit] 2016-10-28 03:22:37,808 [myid:] - INFO  [main:ClientBase@522] - 
tearDown starting
[junit] 2016-10-28 03:22:37,883 [myid:] - INFO  [main:ZooKeeper@684] - 
Session: 0x158094f8a6d closed
[junit] 2016-10-28 03:22:37,883 [myid:] - INFO  [main:ClientBase@492] - 
STOPPING server
[junit] 2016-10-28 03:22:37,884 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxnFactory@219] - 
NIOServerCnxn factory exited run method
[junit] 2016-10-28 

[jira] [Created] (ZOOKEEPER-2623) CheckVersion outside of Multi causes NullPointerException

2016-10-27 Thread Diego Ongaro (JIRA)
Diego Ongaro created ZOOKEEPER-2623:
---

 Summary: CheckVersion outside of Multi causes NullPointerException
 Key: ZOOKEEPER-2623
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2623
 Project: ZooKeeper
  Issue Type: Bug
Reporter: Diego Ongaro
Priority: Minor


I wasn't sure if check version (opcode 13) was permitted outside of a multi op, 
so I tried it. My server crashed with a NullPointerException and became 
unusable until restarted. I guess it's not allowed, but perhaps the server 
should handle this more gracefully?

Here are the server logs:
{noformat}
Accepted socket connection from /0:0:0:0:0:0:0:1:51737
Session establishment request from client /0:0:0:0:0:0:0:1:51737 client's 
lastZxid is 0x0
Connection request from old client /0:0:0:0:0:0:0:1:51737; will be dropped if 
server is in r-o mode
Client attempting to establish new session at /0:0:0:0:0:0:0:1:51737
:Fsessionid:0x10025651faa type:createSession cxid:0x0 
zxid:0xfffe txntype:unknown reqpath:n/a
Processing request:: sessionid:0x10025651faa type:createSession cxid:0x0 
zxid:0xfffe txntype:unknown reqpath:n/a
Got zxid 0x6065e expected 0x1
Creating new log file: log.6065e
Committing request:: sessionid:0x10025651faa type:createSession cxid:0x0 
zxid:0x6065e txntype:-10 reqpath:n/a
Processing request:: sessionid:0x10025651faa type:createSession cxid:0x0 
zxid:0x6065e txntype:-10 reqpath:n/a
:Esessionid:0x10025651faa type:createSession cxid:0x0 zxid:0x6065e 
txntype:-10 reqpath:n/a
sessionid:0x10025651faa type:createSession cxid:0x0 zxid:0x6065e 
txntype:-10 reqpath:n/a
Add a buffer to outgoingBuffers, sk sun.nio.ch.SelectionKeyImpl@28e9f397 is 
valid: true
Established session 0x10025651faa with negotiated timeout 2 for client 
/0:0:0:0:0:0:0:1:51737
:Fsessionid:0x10025651faa type:check cxid:0x1 zxid:0xfffe 
txntype:unknown reqpath:/
Processing request:: sessionid:0x10025651faa type:check cxid:0x1 
zxid:0xfffe txntype:unknown reqpath:/
Processing request:: sessionid:0x10025651faa type:check cxid:0x1 
zxid:0xfffe txntype:unknown reqpath:/
Exception causing close of session 0x10025651faa: Connection reset by peer
:Esessionid:0x10025651faa type:check cxid:0x1 zxid:0xfffe 
txntype:unknown reqpath:/
IOException stack trace
java.io.IOException: Connection reset by peer
at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:197)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
at 
org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:320)
at 
org.apache.zookeeper.server.NIOServerCnxnFactory$IOWorkRequest.doWork(NIOServerCnxnFactory.java:530)
at 
org.apache.zookeeper.server.WorkerService$ScheduledWorkRequest.run(WorkerService.java:162)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Unexpected exception
java.lang.NullPointerException
at 
org.apache.zookeeper.server.ZKDatabase.addCommittedProposal(ZKDatabase.java:252)
at 
org.apache.zookeeper.server.FinalRequestProcessor.processRequest(FinalRequestProcessor.java:127)
at 
org.apache.zookeeper.server.quorum.CommitProcessor$CommitWorkRequest.doWork(CommitProcessor.java:362)
at 
org.apache.zookeeper.server.WorkerService$ScheduledWorkRequest.run(WorkerService.java:162)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Committing request:: sessionid:0x10025651faa type:error cxid:0x1 
zxid:0x6065f txntype:-1 reqpath:n/a
Unregister MBean 
[org.apache.ZooKeeperService:name0=ReplicatedServer_id1,name1=replica.1,name2=Follower,name3=Connections,name4="0:0:0:0:0:0:0:1",name5=0x10025651faa]
Exception thrown by downstream processor, unable to continue.
CommitProcessor exited loop!
Closed socket connection for client /0:0:0:0:0:0:0:1:51737 which had sessionid 
0x10025651faa
{noformat}

And here's a one-liner to repro, which does a ConnectRequest followed by a 
{{CheckVersion(path="/", version=89235}}}:
{noformat}
echo 
LAAAJxAAABAAEQENAS8AAVyT
 | base64 --decode | nc localhost 2181 >/dev/null
{noformat}

This is against master as of a couple of weeks ago (f78061a). I haven't checked 
to see which versions are affected.




ZooKeeper-trunk - Build # 3135 - Failure

2016-10-27 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper-trunk/3135/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 412829 lines...]
[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-10-27 23:54:46,515 [myid:] - INFO  [ProcessThread(sid:0 
cport:19545)::PrepRequestProcessor@605] - Processed session termination for 
sessionid: 0x101e27bb2ea
[junit] 2016-10-27 23:54:46,517 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@513] - EventThread shut down for 
session: 0x101e27bb2ea
[junit] 2016-10-27 23:54:46,518 [myid:] - INFO  
[SyncThread:0:MBeanRegistry@128] - Unregister MBean 
[org.apache.ZooKeeperService:name0=StandaloneServer_port19545,name1=Connections,name2=127.0.0.1,name3=0x101e27bb2ea]
[junit] 2016-10-27 23:54:46,518 [myid:] - INFO  [main:ZooKeeper@1315] - 
Session: 0x101e27bb2ea closed
[junit] 2016-10-27 23:54:46,518 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@82] - Memory used 158835
[junit] 2016-10-27 23:54:46,518 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@87] - Number of threads 1643
[junit] 2016-10-27 23:54:46,518 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@102] - FINISHED TEST METHOD 
testWatcherAutoResetWithLocal
[junit] 2016-10-27 23:54:46,518 [myid:] - INFO  [main:ClientBase@543] - 
tearDown starting
[junit] 2016-10-27 23:54:46,518 [myid:] - INFO  [main:ClientBase@513] - 
STOPPING server
[junit] 2016-10-27 23:54:46,518 [myid:] - INFO  
[main:NettyServerCnxnFactory@464] - shutdown called 0.0.0.0/0.0.0.0:19545
[junit] 2016-10-27 23:54:46,522 [myid:] - INFO  [main:ZooKeeperServer@529] 
- shutting down
[junit] 2016-10-27 23:54:46,522 [myid:] - ERROR [main:ZooKeeperServer@501] 
- ZKShutdownHandler is not registered, so ZooKeeper server won't take any 
action on ERROR or SHUTDOWN server state changes
[junit] 2016-10-27 23:54:46,523 [myid:] - INFO  
[main:SessionTrackerImpl@232] - Shutting down
[junit] 2016-10-27 23:54:46,523 [myid:] - INFO  
[main:PrepRequestProcessor@996] - Shutting down
[junit] 2016-10-27 23:54:46,523 [myid:] - INFO  
[main:SyncRequestProcessor@191] - Shutting down
[junit] 2016-10-27 23:54:46,523 [myid:] - INFO  [ProcessThread(sid:0 
cport:19545)::PrepRequestProcessor@156] - PrepRequestProcessor exited loop!
[junit] 2016-10-27 23:54:46,523 [myid:] - INFO  
[SyncThread:0:SyncRequestProcessor@169] - SyncRequestProcessor exited!
[junit] 2016-10-27 23:54:46,525 [myid:] - INFO  
[main:FinalRequestProcessor@481] - shutdown of request processor complete
[junit] 2016-10-27 23:54:46,525 [myid:] - INFO  [main:MBeanRegistry@128] - 
Unregister MBean 
[org.apache.ZooKeeperService:name0=StandaloneServer_port19545,name1=InMemoryDataTree]
[junit] 2016-10-27 23:54:46,525 [myid:] - INFO  [main:MBeanRegistry@128] - 
Unregister MBean [org.apache.ZooKeeperService:name0=StandaloneServer_port19545]
[junit] 2016-10-27 23:54:46,550 [myid:] - INFO  
[main:FourLetterWordMain@85] - connecting to 127.0.0.1 19545
[junit] 2016-10-27 23:54:46,551 [myid:] - INFO  [main:JMXEnv@146] - 
ensureOnly:[]
[junit] 2016-10-27 23:54:46,557 [myid:] - INFO  [main:ClientBase@568] - 
fdcount after test is: 4828 at start it was 4828
[junit] 2016-10-27 23:54:46,557 [myid:] - INFO  [main:ZKTestCase$1@65] - 
SUCCEEDED testWatcherAutoResetWithLocal
[junit] 2016-10-27 23:54:46,557 [myid:] - INFO  [main:ZKTestCase$1@60] - 
FINISHED testWatcherAutoResetWithLocal
[junit] Tests run: 101, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
452.039 sec, Thread: 4, Class: org.apache.zookeeper.test.NioNettySuiteTest
[junit] 2016-10-27 23:54:46,829 [myid:127.0.0.1:19422] - INFO  
[main-SendThread(127.0.0.1:19422):ClientCnxn$SendThread@1113] - Opening socket 
connection to server 127.0.0.1/127.0.0.1:19422. Will not attempt to 
authenticate using SASL (unknown error)
[junit] 2016-10-27 23:54:46,830 [myid:127.0.0.1:19422] - WARN  
[main-SendThread(127.0.0.1:19422):ClientCnxn$SendThread@1235] - Session 
0x101e278c739 for server 127.0.0.1/127.0.0.1:19422, 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 

ZooKeeper_branch34_jdk8 - Build # 751 - Still Failing

2016-10-27 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper_branch34_jdk8/751/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 196132 lines...]
[junit] 2016-10-27 23:24:43,337 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxnFactory@219] - 
NIOServerCnxn factory exited run method
[junit] 2016-10-27 23:24:43,337 [myid:] - INFO  [main:ZooKeeperServer@497] 
- shutting down
[junit] 2016-10-27 23:24:43,337 [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-10-27 23:24:43,337 [myid:] - INFO  
[main:SessionTrackerImpl@225] - Shutting down
[junit] 2016-10-27 23:24:43,337 [myid:] - INFO  
[main:PrepRequestProcessor@765] - Shutting down
[junit] 2016-10-27 23:24:43,338 [myid:] - INFO  
[main:SyncRequestProcessor@208] - Shutting down
[junit] 2016-10-27 23:24:43,338 [myid:] - INFO  [ProcessThread(sid:0 
cport:11221)::PrepRequestProcessor@143] - PrepRequestProcessor exited loop!
[junit] 2016-10-27 23:24:43,338 [myid:] - INFO  
[SyncThread:0:SyncRequestProcessor@186] - SyncRequestProcessor exited!
[junit] 2016-10-27 23:24:43,338 [myid:] - INFO  
[main:FinalRequestProcessor@402] - shutdown of request processor complete
[junit] 2016-10-27 23:24:43,339 [myid:] - INFO  
[main:FourLetterWordMain@62] - connecting to 127.0.0.1 11221
[junit] 2016-10-27 23:24:43,339 [myid:] - INFO  [main:JMXEnv@146] - 
ensureOnly:[]
[junit] 2016-10-27 23:24:43,341 [myid:] - INFO  [main:ClientBase@445] - 
STARTING server
[junit] 2016-10-27 23:24:43,341 [myid:] - INFO  [main:ClientBase@366] - 
CREATING server instance 127.0.0.1:11221
[junit] 2016-10-27 23:24:43,342 [myid:] - INFO  
[main:NIOServerCnxnFactory@89] - binding to port 0.0.0.0/0.0.0.0:11221
[junit] 2016-10-27 23:24:43,342 [myid:] - INFO  [main:ClientBase@341] - 
STARTING server instance 127.0.0.1:11221
[junit] 2016-10-27 23:24:43,342 [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/test8330352740026047291.junit.dir/version-2
 snapdir 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34_jdk8/build/test/tmp/test8330352740026047291.junit.dir/version-2
[junit] 2016-10-27 23:24:43,345 [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-10-27 23:24:43,345 [myid:] - INFO  
[main:FourLetterWordMain@62] - connecting to 127.0.0.1 11221
[junit] 2016-10-27 23:24:43,346 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxnFactory@192] - 
Accepted socket connection from /127.0.0.1:49269
[junit] 2016-10-27 23:24:43,346 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxn@827] - Processing 
stat command from /127.0.0.1:49269
[junit] 2016-10-27 23:24:43,346 [myid:] - INFO  
[Thread-4:NIOServerCnxn$StatCommand@663] - Stat command output
[junit] 2016-10-27 23:24:43,347 [myid:] - INFO  
[Thread-4:NIOServerCnxn@1008] - Closed socket connection for client 
/127.0.0.1:49269 (no session established for client)
[junit] 2016-10-27 23:24:43,347 [myid:] - INFO  [main:JMXEnv@229] - 
ensureParent:[InMemoryDataTree, StandaloneServer_port]
[junit] 2016-10-27 23:24:43,349 [myid:] - INFO  [main:JMXEnv@246] - 
expect:InMemoryDataTree
[junit] 2016-10-27 23:24:43,349 [myid:] - INFO  [main:JMXEnv@250] - 
found:InMemoryDataTree 
org.apache.ZooKeeperService:name0=StandaloneServer_port11221,name1=InMemoryDataTree
[junit] 2016-10-27 23:24:43,349 [myid:] - INFO  [main:JMXEnv@246] - 
expect:StandaloneServer_port
[junit] 2016-10-27 23:24:43,349 [myid:] - INFO  [main:JMXEnv@250] - 
found:StandaloneServer_port 
org.apache.ZooKeeperService:name0=StandaloneServer_port11221
[junit] 2016-10-27 23:24:43,350 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@58] - Memory used 33587
[junit] 2016-10-27 23:24:43,350 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@63] - Number of threads 20
[junit] 2016-10-27 23:24:43,350 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@78] - FINISHED TEST METHOD testQuota
[junit] 2016-10-27 23:24:43,350 [myid:] - INFO  [main:ClientBase@522] - 
tearDown starting
[junit] 2016-10-27 23:24:43,417 [myid:] - INFO  [main:ZooKeeper@684] - 
Session: 0x1580875ba88 closed
[junit] 2016-10-27 23:24:43,417 [myid:] - INFO  [main:ClientBase@492] - 
STOPPING server
[junit] 2016-10-27 23:24:43,417 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@519] - EventThread shut down for 
session: 0x1580875ba88
[junit] 2016-10-27 23:24:43,418 

[jira] [Commented] (ZOOKEEPER-1045) Support Quorum Peer mutual authentication via SASL

2016-10-27 Thread Michael Han (JIRA)

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

Michael Han commented on ZOOKEEPER-1045:


Update test report posted as https://goo.gl/qNR45M (open to everyone for 
comment). 

The gist out of the report is:
* We need to decide how to support shared Kerberos principals. Currently 
zkquo...@realm.com does not work, but it should be easy to fix this.
* There is a corner case about impersonating server (a server with a valid 
Kerberos credential from another server in ensemble.). My feeling is this is a 
corner case that we could either postpone or document - security wise it seems 
fine, because we support shared kerberos credential there is no way we can 
prevent impersonating (shared Kerberos credential is an extreme, as shared 
Kerberos credential effectively would disable authorization).

> Support Quorum Peer mutual authentication via SASL
> --
>
> Key: ZOOKEEPER-1045
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1045
> Project: ZooKeeper
>  Issue Type: New Feature
>  Components: quorum, security
>Reporter: Eugene Koontz
>Assignee: Rakesh R
>Priority: Critical
> Fix For: 3.4.10, 3.5.3
>
> Attachments: 0001-ZOOKEEPER-1045-br-3-4.patch, 
> 1045_failing_phunt.tar.gz, HOST_RESOLVER-ZK-1045.patch, QuorumPeer Mutual 
> Authentication Via Sasl Feature Doc - 2016-Sep-25.pdf, 
> TEST-org.apache.zookeeper.server.quorum.auth.QuorumAuthUpgradeTest.txt, 
> ZK-1045-test-case-failure-logs.zip, ZOOKEEPER-1045 Test Plan.pdf, 
> ZOOKEEPER-1045-00.patch, ZOOKEEPER-1045-Rolling Upgrade Design Proposal.pdf, 
> ZOOKEEPER-1045-br-3-4.patch, ZOOKEEPER-1045-br-3-4.patch, 
> ZOOKEEPER-1045-br-3-4.patch, ZOOKEEPER-1045-br-3-4.patch, 
> ZOOKEEPER-1045-br-3-4.patch, ZOOKEEPER-1045-br-3-4.patch, 
> ZOOKEEPER-1045-br-3-4.patch, ZOOKEEPER-1045-br-3-4.patch, 
> ZOOKEEPER-1045-br-3-4.patch, ZOOKEEPER-1045-br-3-4.patch, 
> ZOOKEEPER-1045-br-3-4.patch, ZOOKEEPER-1045TestValidationDesign.pdf, 
> org.apache.zookeeper.server.quorum.auth.QuorumAuthUpgradeTest.testRollingUpgrade.log
>
>
> ZOOKEEPER-938 addresses mutual authentication between clients and servers. 
> This bug, on the other hand, is for authentication among quorum peers. 
> Hopefully much of the work done on SASL integration with Zookeeper for 
> ZOOKEEPER-938 can be used as a foundation for this enhancement.
> Review board: https://reviews.apache.org/r/47354/



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


Re: QA github pre-commit queue

2016-10-27 Thread Flavio Junqueira
Yeah, I tried to trigger the 761 manually and it didn't work. I need to work on 
the manual trigger.

The issue with your PR 94 is likely to be a bug in the config that I think I 
fixed now. I need to create a test PR to debug it.

One problem is that builds.apache.org  is super 
slow, so it is difficult to work on the configuration right now. I'll work some 
more on my morning because it shouldn't be as busy.

-Flavio

> On 27 Oct 2016, at 22:19, Michael Han  wrote:
> 
> I saw the pre-commit build from the new bot (
> https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/1/) for
> ZOOKEEPER-761. There are two issues:
> 
> * The test does not run, because "[exec] ZOOKEEPER-761 is not "Patch
> Available".  Exiting."
> * The build result was sent to dev list, but the result was not posted on
> JIRA, as previous build bot did.
> 
> Still no sign of pre-commit build triggered by my PR94, btw.
> 
> On Thu, Oct 27, 2016 at 12:07 PM, Benjamin Reed  wrote:
> 
>> i also pushed a new version for
>> https://issues.apache.org/jira/browse/ZOOKEEPER-761 although that one
>> might
>> be tricky since there are attached patches and a pr. should the pr still be
>> qaed?
>> 
>> 
>> On Thu, Oct 27, 2016 at 12:04 PM, Michael Han  wrote:
>> 
>>> Created PR94 to ZOOKEEPER-2014. It's been 2 hours, and no QA bot
>> activity.
>>> 
>>> On Thu, Oct 27, 2016 at 9:05 AM, Flavio Junqueira 
>> wrote:
>>> 
 Ok, I have created this queue: PreCommit-ZOOKEEPER-github-pr-build. I
 have configured it and would kindly appreciate if anyone could update a
>>> PR
 to test it.
 
 -Flavio
 
 
> On 27 Oct 2016, at 16:57, Edward Ribeiro 
 wrote:
> 
> Cool! Thanks for the heads up. :)
> 
> Cheers
> 
> Em 27 de out de 2016 1:56 PM, "Flavio Junqueira" 
 escreveu:
> 
>> There is no need to create an INFRA jira, I'm taking care of it,
>> stay
>> tuned. In the meanwhile, please submit patches as usual through jira
>>> to
>> trigger QA.
>> 
>> -Flavio
>> 
>>> On 27 Oct 2016, at 16:54, Edward Ribeiro >> 
>> wrote:
>>> 
>>> Dear community,
>>> 
>>> As part of the github move, we are still lacking the plumbing that
 allows
>>> to run Jenkins CI tests, etc, on open Pull Requests. Please, take a
 look
>> at
>>> Kafka pending PR at Github to see what I am referring to.
>>> 
>>> Any committer could open an INFRA JIRA to address this?
>>> 
>>> Best regards,
>>> Eddie
>> 
>> 
 
 
>>> 
>>> 
>>> --
>>> Cheers
>>> Michael.
>>> 
>> 
> 
> 
> 
> -- 
> Cheers
> Michael.



[jira] [Updated] (ZOOKEEPER-2597) Add script to merge PR from Apache git repo to Github

2016-10-27 Thread Edward Ribeiro (JIRA)

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

Edward Ribeiro updated ZOOKEEPER-2597:
--
Attachment: (was: 85.diff)

> Add script to merge PR from Apache git repo to Github
> -
>
> Key: ZOOKEEPER-2597
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2597
> Project: ZooKeeper
>  Issue Type: Improvement
>Reporter: Edward Ribeiro
>Assignee: Edward Ribeiro
>Priority: Minor
> Attachments: ZOOKEEPER-2597.patch
>
>
> A port of kafka-merge-pr.py to workon on ZooKeeper repo.



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


[jira] [Updated] (ZOOKEEPER-2597) Add script to merge PR from Apache git repo to Github

2016-10-27 Thread Edward Ribeiro (JIRA)

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

Edward Ribeiro updated ZOOKEEPER-2597:
--
Attachment: (was: 85.2.diff)

> Add script to merge PR from Apache git repo to Github
> -
>
> Key: ZOOKEEPER-2597
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2597
> Project: ZooKeeper
>  Issue Type: Improvement
>Reporter: Edward Ribeiro
>Assignee: Edward Ribeiro
>Priority: Minor
> Attachments: ZOOKEEPER-2597.patch
>
>
> A port of kafka-merge-pr.py to workon on ZooKeeper repo.



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


[jira] [Updated] (ZOOKEEPER-2597) Add script to merge PR from Apache git repo to Github

2016-10-27 Thread Edward Ribeiro (JIRA)

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

Edward Ribeiro updated ZOOKEEPER-2597:
--
Attachment: 85.2.diff

> Add script to merge PR from Apache git repo to Github
> -
>
> Key: ZOOKEEPER-2597
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2597
> Project: ZooKeeper
>  Issue Type: Improvement
>Reporter: Edward Ribeiro
>Assignee: Edward Ribeiro
>Priority: Minor
> Attachments: 85.2.diff, 85.diff, ZOOKEEPER-2597.patch
>
>
> A port of kafka-merge-pr.py to workon on ZooKeeper repo.



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


Re: QA github pre-commit queue

2016-10-27 Thread Michael Han
I saw the pre-commit build from the new bot (
https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/1/) for
ZOOKEEPER-761. There are two issues:

* The test does not run, because "[exec] ZOOKEEPER-761 is not "Patch
Available".  Exiting."
* The build result was sent to dev list, but the result was not posted on
JIRA, as previous build bot did.

Still no sign of pre-commit build triggered by my PR94, btw.

On Thu, Oct 27, 2016 at 12:07 PM, Benjamin Reed  wrote:

> i also pushed a new version for
> https://issues.apache.org/jira/browse/ZOOKEEPER-761 although that one
> might
> be tricky since there are attached patches and a pr. should the pr still be
> qaed?
>
>
> On Thu, Oct 27, 2016 at 12:04 PM, Michael Han  wrote:
>
> > Created PR94 to ZOOKEEPER-2014. It's been 2 hours, and no QA bot
> activity.
> >
> > On Thu, Oct 27, 2016 at 9:05 AM, Flavio Junqueira 
> wrote:
> >
> > > Ok, I have created this queue: PreCommit-ZOOKEEPER-github-pr-build. I
> > > have configured it and would kindly appreciate if anyone could update a
> > PR
> > > to test it.
> > >
> > > -Flavio
> > >
> > >
> > > > On 27 Oct 2016, at 16:57, Edward Ribeiro 
> > > wrote:
> > > >
> > > > Cool! Thanks for the heads up. :)
> > > >
> > > > Cheers
> > > >
> > > > Em 27 de out de 2016 1:56 PM, "Flavio Junqueira" 
> > > escreveu:
> > > >
> > > >> There is no need to create an INFRA jira, I'm taking care of it,
> stay
> > > >> tuned. In the meanwhile, please submit patches as usual through jira
> > to
> > > >> trigger QA.
> > > >>
> > > >> -Flavio
> > > >>
> > > >>> On 27 Oct 2016, at 16:54, Edward Ribeiro  >
> > > >> wrote:
> > > >>>
> > > >>> Dear community,
> > > >>>
> > > >>> As part of the github move, we are still lacking the plumbing that
> > > allows
> > > >>> to run Jenkins CI tests, etc, on open Pull Requests. Please, take a
> > > look
> > > >> at
> > > >>> Kafka pending PR at Github to see what I am referring to.
> > > >>>
> > > >>> Any committer could open an INFRA JIRA to address this?
> > > >>>
> > > >>> Best regards,
> > > >>> Eddie
> > > >>
> > > >>
> > >
> > >
> >
> >
> > --
> > Cheers
> > Michael.
> >
>



-- 
Cheers
Michael.


[jira] [Commented] (ZOOKEEPER-2080) ReconfigRecoveryTest fails intermittently

2016-10-27 Thread Ted Yu (JIRA)

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

Ted Yu commented on ZOOKEEPER-2080:
---

Thanks for the effort, Michael.

> ReconfigRecoveryTest fails intermittently
> -
>
> Key: ZOOKEEPER-2080
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2080
> Project: ZooKeeper
>  Issue Type: Sub-task
>Reporter: Ted Yu
>Assignee: Michael Han
> Fix For: 3.5.3, 3.6.0
>
> Attachments: ZOOKEEPER-2080.patch, ZOOKEEPER-2080.patch, 
> ZOOKEEPER-2080.patch, ZOOKEEPER-2080.patch, ZOOKEEPER-2080.patch, 
> ZOOKEEPER-2080.patch, jacoco-ZOOKEEPER-2080.unzip-grows-to-70MB.7z, 
> repro-20150816.log, threaddump.log
>
>
> I got the following test failure on MacBook with trunk code:
> {code}
> Testcase: testCurrentObserverIsParticipantInNewConfig took 93.628 sec
>   FAILED
> waiting for server 2 being up
> junit.framework.AssertionFailedError: waiting for server 2 being up
>   at 
> org.apache.zookeeper.server.quorum.ReconfigRecoveryTest.testCurrentObserverIsParticipantInNewConfig(ReconfigRecoveryTest.java:529)
>   at 
> org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:52)
> {code}



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


[jira] [Updated] (ZOOKEEPER-2597) Add script to merge PR from Apache git repo to Github

2016-10-27 Thread Edward Ribeiro (JIRA)

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

Edward Ribeiro updated ZOOKEEPER-2597:
--
Attachment: 85.diff

> Add script to merge PR from Apache git repo to Github
> -
>
> Key: ZOOKEEPER-2597
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2597
> Project: ZooKeeper
>  Issue Type: Improvement
>Reporter: Edward Ribeiro
>Assignee: Edward Ribeiro
>Priority: Minor
> Attachments: 85.diff, ZOOKEEPER-2597.patch
>
>
> A port of kafka-merge-pr.py to workon on ZooKeeper repo.



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


Failed: ZOOKEEPER-761 PreCommit Build #1

2016-10-27 Thread Apache Jenkins Server
Jira: https://issues.apache.org/jira/browse/ZOOKEEPER-761
Build: https://builds.apache.org/job/PreCommit-ZOOKEEPER-github-pr-build/1/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 38 lines...]
open files  (-n) 6
pipe size(512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority  (-r) 0
stack size  (kbytes, -s) 8192
cpu time   (seconds, -t) unlimited
max user processes  (-u) 10240
virtual memory  (kbytes, -v) unlimited
file locks  (-x) unlimited
Buildfile: 
/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/build.xml

check-for-findbugs:

findbugs.check:

forrest.check:

hudson-test-patch:
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec] Testing patch for ZOOKEEPER-761.
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec] 
 [exec] ZOOKEEPER-761 is not "Patch Available".  Exiting.
 [exec] 
 [exec] 
 [exec] 
==
 [exec] 
==
 [exec] Finished build.
 [exec] 
==
 [exec] 
==
 [exec] 
 [exec] 
 [exec] mv: 
'/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/patchprocess'
 and 
'/home/jenkins/jenkins-slave/workspace/PreCommit-ZOOKEEPER-github-pr-build/patchprocess'
 are the same file

BUILD SUCCESSFUL
Total time: 1 second
Archiving artifacts
Setting JDK_1_7_LATEST__HOME=/home/jenkins/tools/java/latest1.7
ERROR: No artifacts found that match the file pattern 
"build/test/findbugs/newPatchFindbugsWarnings.html,patchprocess/*.txt,patchprocess/*Warnings.xml,build/test/test-cppunit/*.txt,build/tmp/zk.log".
 Configuration error?
ERROR: ?build/test/findbugs/newPatchFindbugsWarnings.html? doesn?t match 
anything: even ?build? doesn?t exist
Build step 'Archive the artifacts' changed build result to FAILURE
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-761
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
Setting JDK_1_7_LATEST__HOME=/home/jenkins/tools/java/latest1.7



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

ZooKeeper-trunk-openjdk7 - Build # 1218 - Failure

2016-10-27 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper-trunk-openjdk7/1218/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 422019 lines...]
[junit] 2016-10-27 20:02:55,865 [myid:] - INFO  [main:ClientBase@543] - 
tearDown starting
[junit] 2016-10-27 20:02:55,865 [myid:] - INFO  [main:ClientBase@513] - 
STOPPING server
[junit] 2016-10-27 20:02:55,865 [myid:] - INFO  
[main:NettyServerCnxnFactory@464] - shutdown called 0.0.0.0/0.0.0.0:16852
[junit] 2016-10-27 20:02:55,867 [myid:] - INFO  [main:ZooKeeperServer@529] 
- shutting down
[junit] 2016-10-27 20:02:55,867 [myid:] - ERROR [main:ZooKeeperServer@501] 
- ZKShutdownHandler is not registered, so ZooKeeper server won't take any 
action on ERROR or SHUTDOWN server state changes
[junit] 2016-10-27 20:02:55,868 [myid:] - INFO  
[main:SessionTrackerImpl@232] - Shutting down
[junit] 2016-10-27 20:02:55,868 [myid:] - INFO  
[main:PrepRequestProcessor@996] - Shutting down
[junit] 2016-10-27 20:02:55,868 [myid:] - INFO  
[main:SyncRequestProcessor@191] - Shutting down
[junit] 2016-10-27 20:02:55,868 [myid:] - INFO  [ProcessThread(sid:0 
cport:16852)::PrepRequestProcessor@156] - PrepRequestProcessor exited loop!
[junit] 2016-10-27 20:02:55,868 [myid:] - INFO  
[SyncThread:0:SyncRequestProcessor@169] - SyncRequestProcessor exited!
[junit] 2016-10-27 20:02:55,869 [myid:] - INFO  
[main:FinalRequestProcessor@481] - shutdown of request processor complete
[junit] 2016-10-27 20:02:55,869 [myid:] - INFO  [main:MBeanRegistry@128] - 
Unregister MBean 
[org.apache.ZooKeeperService:name0=StandaloneServer_port16852,name1=InMemoryDataTree]
[junit] 2016-10-27 20:02:55,869 [myid:] - INFO  [main:MBeanRegistry@128] - 
Unregister MBean [org.apache.ZooKeeperService:name0=StandaloneServer_port16852]
[junit] 2016-10-27 20:02:55,870 [myid:] - INFO  
[main:FourLetterWordMain@85] - connecting to 127.0.0.1 16852
[junit] 2016-10-27 20:02:55,870 [myid:] - INFO  [main:JMXEnv@146] - 
ensureOnly:[]
[junit] 2016-10-27 20:02:55,881 [myid:] - INFO  [main:ClientBase@568] - 
fdcount after test is: 1464 at start it was 1464
[junit] 2016-10-27 20:02:55,881 [myid:] - INFO  [main:ZKTestCase$1@65] - 
SUCCEEDED testWatcherAutoResetWithLocal
[junit] 2016-10-27 20:02:55,881 [myid:] - INFO  [main:ZKTestCase$1@60] - 
FINISHED testWatcherAutoResetWithLocal
[junit] Tests run: 101, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
442.082 sec, Thread: 3, Class: org.apache.zookeeper.test.NettyNettySuiteTest
[junit] 2016-10-27 20:02:56,059 [myid:127.0.0.1:16735] - INFO  
[main-SendThread(127.0.0.1:16735):ClientCnxn$SendThread@1113] - Opening socket 
connection to server 127.0.0.1/127.0.0.1:16735. Will not attempt to 
authenticate using SASL (unknown error)
[junit] 2016-10-27 20:02:56,060 [myid:] - INFO  [New I/O boss 
#2592:ClientCnxnSocketNetty$1@127] - future isn't success, cause: {}
[junit] java.net.ConnectException: Connection refused: 
127.0.0.1/127.0.0.1:16735
[junit] at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
[junit] at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:744)
[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] 2016-10-27 20:02:56,060 [myid:] - WARN  [New I/O boss 
#2592:ClientCnxnSocketNetty$ZKClientHandler@439] - Exception caught: [id: 
0xb6f9a17d] EXCEPTION: java.net.ConnectException: Connection refused: 
127.0.0.1/127.0.0.1:16735
[junit] java.net.ConnectException: Connection refused: 
127.0.0.1/127.0.0.1:16735
[junit] at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
[junit] at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:744)
[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 

Re: Dear Community,we find a Vulnerability in Zookeeper/SOLR/Apache(PHP) about tcp connection exhausted,Waiting for your reply

2016-10-27 Thread Flavio P JUNQUEIRA
Please read this:

http://zookeeper.apache.org/security.html

-Flavio

On 27 Oct 2016 20:16, "Linkezhang"  wrote:

> *Problem:*
>
> In the client using some method (such as telnet) to establish a tcp
> connection with server-side apache listening port , but after the
> establishment of tcp connection, the client does not send any data.
> However, apache will not disconnect this tcp connection, may lead to the
> number of connections exhausted , Resulting in DOS
>
>
>
> *The attack process**:*
> 1. The client executes the telnet service port
>
> [image: cid:image001.png@01D23070.DA903540]
> Start the client telnet server port 6, do not exit for a long time:
>
> Excuting an order:
> telnet 172.22.17.26 6
>
>
>


Dear Community,we find a Vulnerability in Zookeeper/SOLR/Apache(PHP) about tcp connection exhausted,Waiting for your reply

2016-10-27 Thread Linkezhang
Problem:
In the client using some method (such as telnet) to establish a tcp connection 
with server-side apache listening port , but after the establishment of tcp 
connection, the client does not send any data. However, apache will not 
disconnect this tcp connection, may lead to the number of connections exhausted 
, Resulting in DOS

The attack process:
1. The client executes the telnet service port
[cid:image001.png@01D23070.DA903540]
Start the client telnet server port 6, do not exit for a long time:
Excuting an order:
telnet 172.22.17.26 6



Re: QA github pre-commit queue

2016-10-27 Thread Benjamin Reed
i also pushed a new version for
https://issues.apache.org/jira/browse/ZOOKEEPER-761 although that one might
be tricky since there are attached patches and a pr. should the pr still be
qaed?


On Thu, Oct 27, 2016 at 12:04 PM, Michael Han  wrote:

> Created PR94 to ZOOKEEPER-2014. It's been 2 hours, and no QA bot activity.
>
> On Thu, Oct 27, 2016 at 9:05 AM, Flavio Junqueira  wrote:
>
> > Ok, I have created this queue: PreCommit-ZOOKEEPER-github-pr-build. I
> > have configured it and would kindly appreciate if anyone could update a
> PR
> > to test it.
> >
> > -Flavio
> >
> >
> > > On 27 Oct 2016, at 16:57, Edward Ribeiro 
> > wrote:
> > >
> > > Cool! Thanks for the heads up. :)
> > >
> > > Cheers
> > >
> > > Em 27 de out de 2016 1:56 PM, "Flavio Junqueira" 
> > escreveu:
> > >
> > >> There is no need to create an INFRA jira, I'm taking care of it, stay
> > >> tuned. In the meanwhile, please submit patches as usual through jira
> to
> > >> trigger QA.
> > >>
> > >> -Flavio
> > >>
> > >>> On 27 Oct 2016, at 16:54, Edward Ribeiro 
> > >> wrote:
> > >>>
> > >>> Dear community,
> > >>>
> > >>> As part of the github move, we are still lacking the plumbing that
> > allows
> > >>> to run Jenkins CI tests, etc, on open Pull Requests. Please, take a
> > look
> > >> at
> > >>> Kafka pending PR at Github to see what I am referring to.
> > >>>
> > >>> Any committer could open an INFRA JIRA to address this?
> > >>>
> > >>> Best regards,
> > >>> Eddie
> > >>
> > >>
> >
> >
>
>
> --
> Cheers
> Michael.
>


Re: QA github pre-commit queue

2016-10-27 Thread Michael Han
Created PR94 to ZOOKEEPER-2014. It's been 2 hours, and no QA bot activity.

On Thu, Oct 27, 2016 at 9:05 AM, Flavio Junqueira  wrote:

> Ok, I have created this queue: PreCommit-ZOOKEEPER-github-pr-build. I
> have configured it and would kindly appreciate if anyone could update a PR
> to test it.
>
> -Flavio
>
>
> > On 27 Oct 2016, at 16:57, Edward Ribeiro 
> wrote:
> >
> > Cool! Thanks for the heads up. :)
> >
> > Cheers
> >
> > Em 27 de out de 2016 1:56 PM, "Flavio Junqueira" 
> escreveu:
> >
> >> There is no need to create an INFRA jira, I'm taking care of it, stay
> >> tuned. In the meanwhile, please submit patches as usual through jira to
> >> trigger QA.
> >>
> >> -Flavio
> >>
> >>> On 27 Oct 2016, at 16:54, Edward Ribeiro 
> >> wrote:
> >>>
> >>> Dear community,
> >>>
> >>> As part of the github move, we are still lacking the plumbing that
> allows
> >>> to run Jenkins CI tests, etc, on open Pull Requests. Please, take a
> look
> >> at
> >>> Kafka pending PR at Github to see what I am referring to.
> >>>
> >>> Any committer could open an INFRA JIRA to address this?
> >>>
> >>> Best regards,
> >>> Eddie
> >>
> >>
>
>


-- 
Cheers
Michael.


[jira] [Commented] (ZOOKEEPER-2014) Only admin should be allowed to reconfig a cluster

2016-10-27 Thread ASF GitHub Bot (JIRA)

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

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

GitHub user hanm opened a pull request:

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

ZOOKEEPER-2014: Only admin should be allowed to reconfig a cluster.

This PR implements ZOOKEEPER-2014. For details, please refer to
* JIRA: https://issues.apache.org/jira/browse/ZOOKEEPER-2014
* Previous review board: https://reviews.apache.org/r/51546/

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

$ git pull https://github.com/hanm/zookeeper ZOOKEEPER-2014

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

https://github.com/apache/zookeeper/pull/94.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 #94


commit 616e1275ac38890c2bf1e3ac27465172cf1c52d5
Author: Michael Han 
Date:   2016-10-27T16:16:27Z

ZOOKEEPER-2014: Only admin should be allowed to reconfig a cluster.




> Only admin should be allowed to reconfig a cluster
> --
>
> Key: ZOOKEEPER-2014
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2014
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: server
>Affects Versions: 3.5.0
>Reporter: Raul Gutierrez Segales
>Assignee: Michael Han
>Priority: Blocker
> Fix For: 3.5.3
>
> Attachments: ZOOKEEPER-2014.patch, ZOOKEEPER-2014.patch, 
> ZOOKEEPER-2014.patch, ZOOKEEPER-2014.patch, ZOOKEEPER-2014.patch, 
> ZOOKEEPER-2014.patch, ZOOKEEPER-2014.patch, ZOOKEEPER-2014.patch, 
> ZOOKEEPER-2014.patch, ZOOKEEPER-2014.patch, ZOOKEEPER-2014.patch, 
> ZOOKEEPER-2014.patch
>
>
> ZOOKEEPER-107 introduces reconfiguration support via the reconfig() call. We 
> should, at the very least, ensure that only the Admin can reconfigure a 
> cluster. Perhaps restricting access to /zookeeper/config as well, though this 
> is debatable. Surely one could ensure Admin only access via an ACL, but that 
> would leave everyone who doesn't use ACLs unprotected. We could also force a 
> default ACL to make it a bit more consistent (maybe).
> Finally, making reconfig() only available to Admins means they have to run 
> with zookeeper.DigestAuthenticationProvider.superDigest (which I am not sure 
> if everyone does, or how would it work with other authentication providers). 
> Review board https://reviews.apache.org/r/51546/



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


[GitHub] zookeeper pull request #94: ZOOKEEPER-2014: Only admin should be allowed to ...

2016-10-27 Thread hanm
GitHub user hanm opened a pull request:

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

ZOOKEEPER-2014: Only admin should be allowed to reconfig a cluster.

This PR implements ZOOKEEPER-2014. For details, please refer to
* JIRA: https://issues.apache.org/jira/browse/ZOOKEEPER-2014
* Previous review board: https://reviews.apache.org/r/51546/

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

$ git pull https://github.com/hanm/zookeeper ZOOKEEPER-2014

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

https://github.com/apache/zookeeper/pull/94.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 #94


commit 616e1275ac38890c2bf1e3ac27465172cf1c52d5
Author: Michael Han 
Date:   2016-10-27T16:16:27Z

ZOOKEEPER-2014: Only admin should be allowed to reconfig a cluster.




---
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: QA github pre-commit queue

2016-10-27 Thread Flavio Junqueira
Ok, I have created this queue: PreCommit-ZOOKEEPER-github-pr-build. I have 
configured it and would kindly appreciate if anyone could update a PR to test 
it.

-Flavio


> On 27 Oct 2016, at 16:57, Edward Ribeiro  wrote:
> 
> Cool! Thanks for the heads up. :)
> 
> Cheers
> 
> Em 27 de out de 2016 1:56 PM, "Flavio Junqueira"  escreveu:
> 
>> There is no need to create an INFRA jira, I'm taking care of it, stay
>> tuned. In the meanwhile, please submit patches as usual through jira to
>> trigger QA.
>> 
>> -Flavio
>> 
>>> On 27 Oct 2016, at 16:54, Edward Ribeiro 
>> wrote:
>>> 
>>> Dear community,
>>> 
>>> As part of the github move, we are still lacking the plumbing that allows
>>> to run Jenkins CI tests, etc, on open Pull Requests. Please, take a look
>> at
>>> Kafka pending PR at Github to see what I am referring to.
>>> 
>>> Any committer could open an INFRA JIRA to address this?
>>> 
>>> Best regards,
>>> Eddie
>> 
>> 



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

2016-10-27 Thread ASF GitHub Bot (JIRA)

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

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

Github user hanm commented on the issue:

https://github.com/apache/zookeeper/pull/84
  
(Not particularly related to the logic of this PR) Might be better to do a 
git squash to consolidate 16 commits into a single commit to keep the commit 
history clean - I've seen most projects operate that way. 


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


[GitHub] zookeeper issue #84: [ZOOKEEPER-1525] Plumb ZooKeeperServer object into auth...

2016-10-27 Thread hanm
Github user hanm commented on the issue:

https://github.com/apache/zookeeper/pull/84
  
(Not particularly related to the logic of this PR) Might be better to do a 
git squash to consolidate 16 commits into a single commit to keep the commit 
history clean - I've seen most projects operate that way. 


---
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: QA github pre-commit queue

2016-10-27 Thread Edward Ribeiro
Cool! Thanks for the heads up. :)

Cheers

Em 27 de out de 2016 1:56 PM, "Flavio Junqueira"  escreveu:

> There is no need to create an INFRA jira, I'm taking care of it, stay
> tuned. In the meanwhile, please submit patches as usual through jira to
> trigger QA.
>
> -Flavio
>
> > On 27 Oct 2016, at 16:54, Edward Ribeiro 
> wrote:
> >
> > Dear community,
> >
> > As part of the github move, we are still lacking the plumbing that allows
> > to run Jenkins CI tests, etc, on open Pull Requests. Please, take a look
> at
> > Kafka pending PR at Github to see what I am referring to.
> >
> > Any committer could open an INFRA JIRA to address this?
> >
> > Best regards,
> > Eddie
>
>


Re: QA github pre-commit queue

2016-10-27 Thread Flavio Junqueira
There is no need to create an INFRA jira, I'm taking care of it, stay tuned. In 
the meanwhile, please submit patches as usual through jira to trigger QA.

-Flavio

> On 27 Oct 2016, at 16:54, Edward Ribeiro  wrote:
> 
> Dear community,
> 
> As part of the github move, we are still lacking the plumbing that allows
> to run Jenkins CI tests, etc, on open Pull Requests. Please, take a look at
> Kafka pending PR at Github to see what I am referring to.
> 
> Any committer could open an INFRA JIRA to address this?
> 
> Best regards,
> Eddie



QA github pre-commit queue

2016-10-27 Thread Edward Ribeiro
Dear community,

As part of the github move, we are still lacking the plumbing that allows
to run Jenkins CI tests, etc, on open Pull Requests. Please, take a look at
Kafka pending PR at Github to see what I am referring to.

Any committer could open an INFRA JIRA to address this?

Best regards,
Eddie


[GitHub] zookeeper issue #84: [ZOOKEEPER-1525] Plumb ZooKeeperServer object into auth...

2016-10-27 Thread Randgalt
Github user Randgalt commented on the issue:

https://github.com/apache/zookeeper/pull/84
  
@fpj Any more thoughts on this Flavio?


---
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-1525) Plumb ZooKeeperServer object into auth plugins

2016-10-27 Thread ASF GitHub Bot (JIRA)

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

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

Github user Randgalt commented on the issue:

https://github.com/apache/zookeeper/pull/84
  
@fpj Any more thoughts on this Flavio?


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


ZooKeeper_branch34_openjdk7 - Build # 1257 - Failure

2016-10-27 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper_branch34_openjdk7/1257/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 192865 lines...]
[junit] 2016-10-27 15:34:19,598 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxnFactory@219] - 
NIOServerCnxn factory exited run method
[junit] 2016-10-27 15:34:19,598 [myid:] - INFO  [main:ZooKeeperServer@497] 
- shutting down
[junit] 2016-10-27 15:34:19,598 [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-10-27 15:34:19,598 [myid:] - INFO  
[main:SessionTrackerImpl@225] - Shutting down
[junit] 2016-10-27 15:34:19,598 [myid:] - INFO  
[main:PrepRequestProcessor@765] - Shutting down
[junit] 2016-10-27 15:34:19,598 [myid:] - INFO  
[main:SyncRequestProcessor@208] - Shutting down
[junit] 2016-10-27 15:34:19,598 [myid:] - INFO  [ProcessThread(sid:0 
cport:11221)::PrepRequestProcessor@143] - PrepRequestProcessor exited loop!
[junit] 2016-10-27 15:34:19,599 [myid:] - INFO  
[SyncThread:0:SyncRequestProcessor@186] - SyncRequestProcessor exited!
[junit] 2016-10-27 15:34:19,599 [myid:] - INFO  
[main:FinalRequestProcessor@402] - shutdown of request processor complete
[junit] 2016-10-27 15:34:19,600 [myid:] - INFO  
[main:FourLetterWordMain@62] - connecting to 127.0.0.1 11221
[junit] 2016-10-27 15:34:19,600 [myid:] - INFO  [main:JMXEnv@146] - 
ensureOnly:[]
[junit] 2016-10-27 15:34:19,602 [myid:] - INFO  [main:ClientBase@445] - 
STARTING server
[junit] 2016-10-27 15:34:19,602 [myid:] - INFO  [main:ClientBase@366] - 
CREATING server instance 127.0.0.1:11221
[junit] 2016-10-27 15:34:19,602 [myid:] - INFO  
[main:NIOServerCnxnFactory@89] - binding to port 0.0.0.0/0.0.0.0:11221
[junit] 2016-10-27 15:34:19,603 [myid:] - INFO  [main:ClientBase@341] - 
STARTING server instance 127.0.0.1:11221
[junit] 2016-10-27 15:34:19,603 [myid:] - INFO  [main:ZooKeeperServer@173] 
- Created server with tickTime 3000 minSessionTimeout 6000 maxSessionTimeout 
6 datadir 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34_openjdk7/build/test/tmp/test1758629206059712892.junit.dir/version-2
 snapdir 
/home/jenkins/jenkins-slave/workspace/ZooKeeper_branch34_openjdk7/build/test/tmp/test1758629206059712892.junit.dir/version-2
[junit] 2016-10-27 15:34:19,608 [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-10-27 15:34:19,608 [myid:] - INFO  
[main:FourLetterWordMain@62] - connecting to 127.0.0.1 11221
[junit] 2016-10-27 15:34:19,608 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxnFactory@192] - 
Accepted socket connection from /127.0.0.1:39365
[junit] 2016-10-27 15:34:19,609 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11221:NIOServerCnxn@827] - Processing 
stat command from /127.0.0.1:39365
[junit] 2016-10-27 15:34:19,609 [myid:] - INFO  
[Thread-4:NIOServerCnxn$StatCommand@663] - Stat command output
[junit] 2016-10-27 15:34:19,610 [myid:] - INFO  
[Thread-4:NIOServerCnxn@1008] - Closed socket connection for client 
/127.0.0.1:39365 (no session established for client)
[junit] 2016-10-27 15:34:19,610 [myid:] - INFO  [main:JMXEnv@229] - 
ensureParent:[InMemoryDataTree, StandaloneServer_port]
[junit] 2016-10-27 15:34:19,612 [myid:] - INFO  [main:JMXEnv@246] - 
expect:InMemoryDataTree
[junit] 2016-10-27 15:34:19,612 [myid:] - INFO  [main:JMXEnv@250] - 
found:InMemoryDataTree 
org.apache.ZooKeeperService:name0=StandaloneServer_port11221,name1=InMemoryDataTree
[junit] 2016-10-27 15:34:19,613 [myid:] - INFO  [main:JMXEnv@246] - 
expect:StandaloneServer_port
[junit] 2016-10-27 15:34:19,613 [myid:] - INFO  [main:JMXEnv@250] - 
found:StandaloneServer_port 
org.apache.ZooKeeperService:name0=StandaloneServer_port11221
[junit] 2016-10-27 15:34:19,613 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@58] - Memory used 32634
[junit] 2016-10-27 15:34:19,614 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@63] - Number of threads 20
[junit] 2016-10-27 15:34:19,614 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@78] - FINISHED TEST METHOD testQuota
[junit] 2016-10-27 15:34:19,614 [myid:] - INFO  [main:ClientBase@522] - 
tearDown starting
[junit] 2016-10-27 15:34:19,662 [myid:] - INFO  [main:ZooKeeper@684] - 
Session: 0x15806c710b2 closed
[junit] 2016-10-27 15:34:19,663 [myid:] - INFO  [main:ClientBase@492] - 
STOPPING server
[junit] 2016-10-27 15:34:19,663 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@519] - EventThread shut down for 
session: 0x15806c710b2
[junit] 2016-10-27 

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

2016-10-27 Thread breed
Github user breed commented on the issue:

https://github.com/apache/zookeeper/pull/90
  
@fpj on the plus side that failure validates that the change is correct :) 
(it is trying to use a sync API with a non threaded test)


---
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-761) Remove *synchronous* calls from the *single-threaded* C clieant API, since they are documented not to work

2016-10-27 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on ZOOKEEPER-761:
--

Github user breed commented on the issue:

https://github.com/apache/zookeeper/pull/90
  
@fpj on the plus side that failure validates that the change is correct :) 
(it is trying to use a sync API with a non threaded test)


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


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

2016-10-27 Thread Benjamin Reed (JIRA)

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

Benjamin Reed commented on ZOOKEEPER-761:
-

not yet, i have a mac and tests don't seem to work on a mac. i haven't had a 
chance to test on linux yet.

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


ZooKeeper_branch34_solaris - Build # 1339 - Failure

2016-10-27 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper_branch34_solaris/1339/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 164916 lines...]
[junit] 2016-10-27 14:02:14,212 [myid:] - INFO  
[Thread-6:NIOServerCnxn$StatCommand@663] - Stat command output
[junit] 2016-10-27 14:02:14,213 [myid:] - INFO  
[Thread-6:NIOServerCnxn@1008] - Closed socket connection for client 
/127.0.0.1:48733 (no session established for client)
[junit] 2016-10-27 14:02:14,213 [myid:] - INFO  [main:JMXEnv@229] - 
ensureParent:[InMemoryDataTree, StandaloneServer_port]
[junit] 2016-10-27 14:02:14,214 [myid:] - INFO  [main:JMXEnv@246] - 
expect:InMemoryDataTree
[junit] 2016-10-27 14:02:14,214 [myid:] - INFO  [main:JMXEnv@250] - 
found:InMemoryDataTree 
org.apache.ZooKeeperService:name0=StandaloneServer_port11222,name1=InMemoryDataTree
[junit] 2016-10-27 14:02:14,214 [myid:] - INFO  [main:JMXEnv@246] - 
expect:StandaloneServer_port
[junit] 2016-10-27 14:02:14,214 [myid:] - INFO  [main:JMXEnv@250] - 
found:StandaloneServer_port 
org.apache.ZooKeeperService:name0=StandaloneServer_port11222
[junit] 2016-10-27 14:02:14,214 [myid:] - INFO  [main:ClientBase@441] - 
Client test setup finished
[junit] 2016-10-27 14:02:14,215 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@53] - RUNNING TEST METHOD 
testSaslConfig
[junit] 2016-10-27 14:02:14,215 [myid:] - INFO  [main:ZooKeeper@438] - 
Initiating client connection, connectString=127.0.0.1:11222 
sessionTimeout=3 
watcher=org.apache.zookeeper.test.ClientBase$CountdownWatcher@1a7f9dc
[junit] 2016-10-27 14:02:14,216 [myid:] - INFO  
[main-SendThread(127.0.0.1:11222):ZooKeeperSaslClient@241] - Client will use 
DIGEST-MD5 as SASL mechanism.
[junit] 2016-10-27 14:02:14,216 [myid:] - INFO  
[main-SendThread(127.0.0.1:11222):ClientCnxn$SendThread@1032] - Opening socket 
connection to server 127.0.0.1/127.0.0.1:11222. Will attempt to 
SASL-authenticate using Login Context section 'MyZookeeperClient'
[junit] 2016-10-27 14:02:14,217 [myid:] - INFO  
[main-SendThread(127.0.0.1:11222):ClientCnxn$SendThread@876] - Socket 
connection established to 127.0.0.1/127.0.0.1:11222, initiating session
[junit] 2016-10-27 14:02:14,217 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11222:NIOServerCnxnFactory@192] - 
Accepted socket connection from /127.0.0.1:48734
[junit] 2016-10-27 14:02:14,217 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11222:ZooKeeperServer@928] - Client 
attempting to establish new session at /127.0.0.1:48734
[junit] 2016-10-27 14:02:14,218 [myid:] - INFO  
[SyncThread:0:FileTxnLog@203] - Creating new log file: log.1
[junit] 2016-10-27 14:02:14,278 [myid:] - INFO  
[SyncThread:0:ZooKeeperServer@673] - Established session 0x1580672c341 with 
negotiated timeout 3 for client /127.0.0.1:48734
[junit] 2016-10-27 14:02:14,278 [myid:] - INFO  
[main-SendThread(127.0.0.1:11222):ClientCnxn$SendThread@1299] - Session 
establishment complete on server 127.0.0.1/127.0.0.1:11222, sessionid = 
0x1580672c341, negotiated timeout = 3
[junit] 2016-10-27 14:02:14,281 [myid:] - INFO  [main:JMXEnv@117] - 
expect:0x1580672c341
[junit] 2016-10-27 14:02:14,282 [myid:] - INFO  [main:JMXEnv@120] - 
found:0x1580672c341 
org.apache.ZooKeeperService:name0=StandaloneServer_port11222,name1=Connections,name2=127.0.0.1,name3=0x1580672c341
[junit] 2016-10-27 14:02:14,282 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11222:SaslServerCallbackHandler@118] - 
Successfully authenticated client: authenticationID=myuser;  
authorizationID=myuser.
[junit] 2016-10-27 14:02:14,284 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11222:SaslServerCallbackHandler@134] - 
Setting authorizedID: myuser
[junit] 2016-10-27 14:02:14,284 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11222:ZooKeeperServer@1024] - adding SASL 
authorization for authorizationID: myuser
[junit] 2016-10-27 14:02:14,288 [myid:] - INFO  [ProcessThread(sid:0 
cport:11222)::PrepRequestProcessor@487] - Processed session termination for 
sessionid: 0x1580672c341
[junit] 2016-10-27 14:02:14,298 [myid:] - INFO  [main:ZooKeeper@684] - 
Session: 0x1580672c341 closed
[junit] 2016-10-27 14:02:14,298 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@58] - Memory used 10301
[junit] 2016-10-27 14:02:14,298 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@519] - EventThread shut down for 
session: 0x1580672c341
[junit] 2016-10-27 14:02:14,298 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@63] - Number of threads 18
[junit] 2016-10-27 14:02:14,299 [myid:] - INFO  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:11222:NIOServerCnxn@1008] - Closed socket 
connection for client /127.0.0.1:48734 which had sessionid 0x1580672c341
  

[jira] [Commented] (ZOOKEEPER-1394) ClassNotFoundException on shutdown of client

2016-10-27 Thread wu wen (JIRA)

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

wu wen commented on ZOOKEEPER-1394:
---

i think this is a class loading time problem,If ZooTrace.xxx()  has been used 
already before the application stopped, it can be loaded normally.

{code:java}
class SendThread extends Thread {
//..igonre   
@Override
public void run() {
  //..igonre

//*for example, If ZooTrace is called here, the problem 
does not occur.***
ZooTrace.logTraceMessage(LOG, ZooTrace.getTextTraceLevel(),
 "SendThread starting loop.");

while (state.isAlive()) {
//..igonre
//there is loop

}

//...executing

/***At this time, may be this web application instance has been 
stopped already.**/

   /**java.lang.IllegalStateException: Illegal access: this web application 
instance has been stopped already. Could not load 
[org.apache.zookeeper.server.ZooTrace]**/
//The container seems to think this is an illegal load
ZooTrace.logTraceMessage(LOG, ZooTrace.getTextTraceLevel(),
 "SendThread exitedloop.");
}

void close() {
state = States.CLOSED;
clientCnxnSocket.wakeupCnxn();
}
   
}
{code}

> ClassNotFoundException on shutdown of client
> 
>
> Key: ZOOKEEPER-1394
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1394
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: java client
>Affects Versions: 3.4.2
> Environment: OS X 10.7 java version "1.6.0_29"
>Reporter: Herman Meerlo
>Assignee: wu wen
>Priority: Minor
> Attachments: ZOOKEEPER-1394.patch
>
>
> When close() is called on the ZooKeeper instance from a ContextListener 
> (contextDestroyed) there is no way to synchronize with the fact that the 
> EventThread and SendThread have actually finished their work. The problem 
> lies in the SendThread which makes a call to ZooTrace when it exits, but that 
> class has not been loaded yet. Because the ContextListener could not 
> synchronize with the death of the threads the classloader has already 
> disappeared, resulting in a ClassNotFoundException.
> My personal opinion is that the close() method should probably wait until the 
> event and send thread have actually died.



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


ZooKeeper_branch35_jdk8 - Build # 281 - Still Failing

2016-10-27 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper_branch35_jdk8/281/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 432061 lines...]
[junit] at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[junit] at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[junit] at java.lang.Thread.run(Thread.java:745)
[junit] 2016-10-27 12:42:05,026 [myid:] - WARN  [New I/O boss 
#2583:ClientCnxnSocketNetty$ZKClientHandler@439] - Exception caught: [id: 
0x0c739365] EXCEPTION: java.net.ConnectException: Connection refused: 
127.0.0.1/127.0.0.1:30197
[junit] java.net.ConnectException: Connection refused: 
127.0.0.1/127.0.0.1:30197
[junit] at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
[junit] at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
[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:1142)
[junit] at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[junit] at java.lang.Thread.run(Thread.java:745)
[junit] 2016-10-27 12:42:05,026 [myid:] - INFO  [New I/O boss 
#2583:ClientCnxnSocketNetty@208] - channel is told closing
[junit] 2016-10-27 12:42:05,026 [myid:127.0.0.1:30197] - INFO  
[main-SendThread(127.0.0.1:30197):ClientCnxn$SendThread@1231] - channel for 
sessionid 0x2000293d53b is lost, closing socket connection and attempting 
reconnect
[junit] 2016-10-27 12:42:05,215 [myid:127.0.0.1:30200] - INFO  
[main-SendThread(127.0.0.1:30200):ClientCnxn$SendThread@1113] - Opening socket 
connection to server 127.0.0.1/127.0.0.1:30200. Will not attempt to 
authenticate using SASL (unknown error)
[junit] 2016-10-27 12:42:05,216 [myid:] - INFO  [New I/O boss 
#2592:ClientCnxnSocketNetty$1@127] - future isn't success, cause: {}
[junit] java.net.ConnectException: Connection refused: 
127.0.0.1/127.0.0.1:30200
[junit] at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
[junit] at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
[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:1142)
[junit] at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[junit] at java.lang.Thread.run(Thread.java:745)
[junit] 2016-10-27 12:42:05,216 [myid:] - WARN  [New I/O boss 
#2592:ClientCnxnSocketNetty$ZKClientHandler@439] - Exception caught: [id: 
0x9aca01fe] EXCEPTION: java.net.ConnectException: Connection refused: 
127.0.0.1/127.0.0.1:30200
[junit] java.net.ConnectException: Connection refused: 
127.0.0.1/127.0.0.1:30200
[junit] at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
[junit] at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
[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)

[jira] [Commented] (ZOOKEEPER-1394) ClassNotFoundException on shutdown of client

2016-10-27 Thread Enrico Olivelli (JIRA)

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

Enrico Olivelli commented on ZOOKEEPER-1394:


I get regularly into this error. 
IMHO the problem is that the container closes  the Classloader and so no class 
can be loaded anymore.
Another fix is to make the client eagerly load the ZooTrace class by using it 
at boot or in other convenient place.
A workaround can be to use the ZooTrace class in the WebApplication and so 
force the classloader to load it

> ClassNotFoundException on shutdown of client
> 
>
> Key: ZOOKEEPER-1394
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1394
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: java client
>Affects Versions: 3.4.2
> Environment: OS X 10.7 java version "1.6.0_29"
>Reporter: Herman Meerlo
>Assignee: wu wen
>Priority: Minor
> Attachments: ZOOKEEPER-1394.patch
>
>
> When close() is called on the ZooKeeper instance from a ContextListener 
> (contextDestroyed) there is no way to synchronize with the fact that the 
> EventThread and SendThread have actually finished their work. The problem 
> lies in the SendThread which makes a call to ZooTrace when it exits, but that 
> class has not been loaded yet. Because the ContextListener could not 
> synchronize with the death of the threads the classloader has already 
> disappeared, resulting in a ClassNotFoundException.
> My personal opinion is that the close() method should probably wait until the 
> event and send thread have actually died.



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


[jira] [Commented] (ZOOKEEPER-1394) ClassNotFoundException on shutdown of client

2016-10-27 Thread Flavio Junqueira (JIRA)

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

Flavio Junqueira commented on ZOOKEEPER-1394:
-

Let me elaborate. I understand that folks are getting it with Tomcat and JBoss, 
but why would the class not be found? Is it because it is not loading the 
server package? Would it make any difference if {{ZooTrace}} were in a 
different package?

It is not a big deal to remove that {{ZooTrace}} call because it is really the 
only call to {{ZooTrace}} in the client currently, but I'd rather understand 
why it happens and fix the problem rather than remove the call if possible. Do 
you understand why this happens, [~wuwen]n? I read the explanation in the 
description, but I don't understand why the class isn't being loaded. Granted 
that I don't understand Tomcat and JBoss well enough to determine whether it is 
problem with those frameworks.

> ClassNotFoundException on shutdown of client
> 
>
> Key: ZOOKEEPER-1394
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1394
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: java client
>Affects Versions: 3.4.2
> Environment: OS X 10.7 java version "1.6.0_29"
>Reporter: Herman Meerlo
>Assignee: wu wen
>Priority: Minor
> Attachments: ZOOKEEPER-1394.patch
>
>
> When close() is called on the ZooKeeper instance from a ContextListener 
> (contextDestroyed) there is no way to synchronize with the fact that the 
> EventThread and SendThread have actually finished their work. The problem 
> lies in the SendThread which makes a call to ZooTrace when it exits, but that 
> class has not been loaded yet. Because the ContextListener could not 
> synchronize with the death of the threads the classloader has already 
> disappeared, resulting in a ClassNotFoundException.
> My personal opinion is that the close() method should probably wait until the 
> event and send thread have actually died.



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


ZooKeeper-trunk-jdk8 - Build # 798 - Still Failing

2016-10-27 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper-trunk-jdk8/798/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 435710 lines...]
[junit] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
[junit] at java.net.Socket.connect(Socket.java:589)
[junit] at 
org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:441)
[junit] at 
org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:482)
[junit] at 
org.apache.zookeeper.server.quorum.QuorumCnxManager.toSend(QuorumCnxManager.java:419)
[junit] at 
org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.process(FastLeaderElection.java:486)
[junit] at 
org.apache.zookeeper.server.quorum.FastLeaderElection$Messenger$WorkerSender.run(FastLeaderElection.java:465)
[junit] at java.lang.Thread.run(Thread.java:745)
[junit] 2016-10-27 12:00:03,041 [myid:] - INFO  
[WorkerReceiver[myid=3]:FastLeaderElection@688] - Notification: 2 (message 
format version), 3 (n.leader), 0x20003 (n.zxid), 0x1 (n.round), LOOKING 
(n.state), 3 (n.sid), 0x2 (n.peerEPoch), LOOKING (my state)1 (n.config 
version)
[junit] 2016-10-27 12:00:03,041 [myid:] - INFO  
[WorkerReceiver[myid=2]:FastLeaderElection@688] - Notification: 2 (message 
format version), 3 (n.leader), 0x20003 (n.zxid), 0x1 (n.round), LOOKING 
(n.state), 3 (n.sid), 0x2 (n.peerEPoch), LEADING (my state)1 (n.config 
version)
[junit] 2016-10-27 12:00:03,042 [myid:] - INFO  
[WorkerReceiver[myid=3]:FastLeaderElection@688] - Notification: 2 (message 
format version), 2 (n.leader), 0x0 (n.zxid), 0x (n.round), 
LEADING (n.state), 2 (n.sid), 0x1 (n.peerEPoch), LOOKING (my state)1 
(n.config version)
[junit] Running org.apache.zookeeper.server.ZxidRolloverTest in thread 5
[junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 
sec, Thread: 5, Class: org.apache.zookeeper.server.ZxidRolloverTest
[junit] Test org.apache.zookeeper.server.ZxidRolloverTest FAILED (timeout)
[junit] 2016-10-27 12:01:12,178 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@82] - Memory used 132959
[junit] 2016-10-27 12:01:12,179 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@87] - Number of threads 55
[junit] 2016-10-27 12:01:12,179 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@102] - FINISHED TEST METHOD 
testManyChildWatchersAutoReset
[junit] 2016-10-27 12:01:12,179 [myid:] - INFO  [main:ClientBase@543] - 
tearDown starting
[junit] 2016-10-27 12:01:12,180 [myid:] - INFO  [ProcessThread(sid:0 
cport:13918)::PrepRequestProcessor@605] - Processed session termination for 
sessionid: 0x10099af3754
[junit] 2016-10-27 12:01:12,198 [myid:] - INFO  [main:ZooKeeper@1315] - 
Session: 0x10099af3754 closed
[junit] 2016-10-27 12:01:12,198 [myid:] - INFO  
[NIOWorkerThread-20:MBeanRegistry@128] - Unregister MBean 
[org.apache.ZooKeeperService:name0=StandaloneServer_port13918,name1=Connections,name2=127.0.0.1,name3=0x10099af3754]
[junit] 2016-10-27 12:01:12,199 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@513] - EventThread shut down for 
session: 0x10099af3754
[junit] 2016-10-27 12:01:12,199 [myid:] - INFO  [ProcessThread(sid:0 
cport:13918)::PrepRequestProcessor@605] - Processed session termination for 
sessionid: 0x10099af37540001
[junit] 2016-10-27 12:01:12,200 [myid:] - INFO  
[NIOWorkerThread-20:NIOServerCnxn@607] - Closed socket connection for client 
/127.0.0.1:53335 which had sessionid 0x10099af3754
[junit] 2016-10-27 12:01:12,253 [myid:] - INFO  [main:ZooKeeper@1315] - 
Session: 0x10099af37540001 closed
[junit] 2016-10-27 12:01:12,254 [myid:] - INFO  [main:ClientBase@513] - 
STOPPING server
[junit] 2016-10-27 12:01:12,253 [myid:] - INFO  
[NIOWorkerThread-9:MBeanRegistry@128] - Unregister MBean 
[org.apache.ZooKeeperService:name0=StandaloneServer_port13918,name1=Connections,name2=127.0.0.1,name3=0x10099af37540001]
[junit] 2016-10-27 12:01:12,254 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@513] - EventThread shut down for 
session: 0x10099af37540001
[junit] 2016-10-27 12:01:12,255 [myid:] - INFO  
[NIOWorkerThread-9:NIOServerCnxn@607] - Closed socket connection for client 
/127.0.0.1:53357 which had sessionid 0x10099af37540001
[junit] 2016-10-27 12:01:12,255 [myid:] - INFO  
[ConnnectionExpirer:NIOServerCnxnFactory$ConnectionExpirerThread@583] - 
ConnnectionExpirerThread interrupted
[junit] 2016-10-27 12:01:12,260 [myid:] - INFO  
[NIOServerCxnFactory.AcceptThread:0.0.0.0/0.0.0.0:13918:NIOServerCnxnFactory$AcceptThread@219]
 - accept thread exitted run method
[junit] 2016-10-27 12:01:12,260 [myid:] - INFO  

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

2016-10-27 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on ZOOKEEPER-761:
--

Github user fpj commented on the issue:

https://github.com/apache/zookeeper/pull/90
  
@breed `make check` does not compile for me:

```
g++ -DHAVE_CONFIG_H -I.  -I./include -I./tests -I./generated   
-DUSE_STATIC_LIB -DZKSERVER_CMD="\"./tests/zkServer.sh\"" -DZOO_IPV6_ENABLED  
-g -O2 -MT zktest_st-TestReconfigServer.o -MD -MP -MF 
.deps/zktest_st-TestReconfigServer.Tpo -c -o zktest_st-TestReconfigServer.o 
`test -f 'tests/TestReconfigServer.cc' || echo './'`tests/TestReconfigServer.cc
In file included from /usr/include/cppunit/TestCase.h:6:0,
 from /usr/include/cppunit/TestCaller.h:5,
 from /usr/include/cppunit/extensions/HelperMacros.h:9,
 from tests/TestReconfigServer.cc:18:
tests/TestReconfigServer.cc: In member function 'void 
TestReconfigServer::testRemoveFollower()':
tests/TestReconfigServer.cc:153:73: error: 'zoo_getconfig' was not declared 
in this scope
 CPPUNIT_ASSERT_EQUAL((int)ZOK, zoo_getconfig(zk, 0, buf, , ));
 ^
tests/TestReconfigServer.cc:174:32: error: 'zoo_reconfig' was not declared 
in this scope
   );
^
In file included from /usr/include/cppunit/TestCase.h:6:0,
 from /usr/include/cppunit/TestCaller.h:5,
 from /usr/include/cppunit/extensions/HelperMacros.h:9,
 from tests/TestReconfigServer.cc:18:
tests/TestReconfigServer.cc: In member function 'void 
TestReconfigServer::testNonIncremental()':
tests/TestReconfigServer.cc:221:73: error: 'zoo_getconfig' was not declared 
in this scope
 CPPUNIT_ASSERT_EQUAL((int)ZOK, zoo_getconfig(zk, 0, buf, , ));
 ^
tests/TestReconfigServer.cc:246:32: error: 'zoo_reconfig' was not declared 
in this scope
   );
^
tests/TestReconfigServer.cc: In member function 'void 
TestReconfigServer::testRemoveConnectedFollower()':
tests/TestReconfigServer.cc:313:72: error: 'zoo_reconfig' was not declared 
in this scope
 zoo_reconfig(zk, NULL, ss.str().c_str(), NULL, -1, buf, , );
^
In file included from /usr/include/cppunit/TestCase.h:6:0,
 from /usr/include/cppunit/TestCaller.h:5,
 from /usr/include/cppunit/extensions/HelperMacros.h:9,
 from tests/TestReconfigServer.cc:18:
tests/TestReconfigServer.cc:314:73: error: 'zoo_getconfig' was not declared 
in this scope
 CPPUNIT_ASSERT_EQUAL((int)ZOK, zoo_getconfig(zk, 0, buf, , ));
```

have you tried running the C tests?


> 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 

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

2016-10-27 Thread fpj
Github user fpj commented on the issue:

https://github.com/apache/zookeeper/pull/90
  
@breed `make check` does not compile for me:

```
g++ -DHAVE_CONFIG_H -I.  -I./include -I./tests -I./generated   
-DUSE_STATIC_LIB -DZKSERVER_CMD="\"./tests/zkServer.sh\"" -DZOO_IPV6_ENABLED  
-g -O2 -MT zktest_st-TestReconfigServer.o -MD -MP -MF 
.deps/zktest_st-TestReconfigServer.Tpo -c -o zktest_st-TestReconfigServer.o 
`test -f 'tests/TestReconfigServer.cc' || echo './'`tests/TestReconfigServer.cc
In file included from /usr/include/cppunit/TestCase.h:6:0,
 from /usr/include/cppunit/TestCaller.h:5,
 from /usr/include/cppunit/extensions/HelperMacros.h:9,
 from tests/TestReconfigServer.cc:18:
tests/TestReconfigServer.cc: In member function 'void 
TestReconfigServer::testRemoveFollower()':
tests/TestReconfigServer.cc:153:73: error: 'zoo_getconfig' was not declared 
in this scope
 CPPUNIT_ASSERT_EQUAL((int)ZOK, zoo_getconfig(zk, 0, buf, , ));
 ^
tests/TestReconfigServer.cc:174:32: error: 'zoo_reconfig' was not declared 
in this scope
   );
^
In file included from /usr/include/cppunit/TestCase.h:6:0,
 from /usr/include/cppunit/TestCaller.h:5,
 from /usr/include/cppunit/extensions/HelperMacros.h:9,
 from tests/TestReconfigServer.cc:18:
tests/TestReconfigServer.cc: In member function 'void 
TestReconfigServer::testNonIncremental()':
tests/TestReconfigServer.cc:221:73: error: 'zoo_getconfig' was not declared 
in this scope
 CPPUNIT_ASSERT_EQUAL((int)ZOK, zoo_getconfig(zk, 0, buf, , ));
 ^
tests/TestReconfigServer.cc:246:32: error: 'zoo_reconfig' was not declared 
in this scope
   );
^
tests/TestReconfigServer.cc: In member function 'void 
TestReconfigServer::testRemoveConnectedFollower()':
tests/TestReconfigServer.cc:313:72: error: 'zoo_reconfig' was not declared 
in this scope
 zoo_reconfig(zk, NULL, ss.str().c_str(), NULL, -1, buf, , );
^
In file included from /usr/include/cppunit/TestCase.h:6:0,
 from /usr/include/cppunit/TestCaller.h:5,
 from /usr/include/cppunit/extensions/HelperMacros.h:9,
 from tests/TestReconfigServer.cc:18:
tests/TestReconfigServer.cc:314:73: error: 'zoo_getconfig' was not declared 
in this scope
 CPPUNIT_ASSERT_EQUAL((int)ZOK, zoo_getconfig(zk, 0, buf, , ));
```

have you tried running the C tests?


---
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_branch35_jdk7 - Build # 713 - Failure

2016-10-27 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper_branch35_jdk7/713/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 443014 lines...]
[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] 2016-10-27 08:49:28,361 [myid:] - WARN  [New I/O boss 
#2592:ClientCnxnSocketNetty$ZKClientHandler@439] - Exception caught: [id: 
0x2d8d13b3] EXCEPTION: java.net.ConnectException: Connection refused: 
127.0.0.1/127.0.0.1:19428
[junit] java.net.ConnectException: Connection refused: 
127.0.0.1/127.0.0.1:19428
[junit] at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
[junit] at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:744)
[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] 2016-10-27 08:49:28,361 [myid:] - INFO  [New I/O boss 
#2592:ClientCnxnSocketNetty@208] - channel is told closing
[junit] 2016-10-27 08:49:28,361 [myid:127.0.0.1:19428] - INFO  
[main-SendThread(127.0.0.1:19428):ClientCnxn$SendThread@1231] - channel for 
sessionid 0x3001c7c8e54 is lost, closing socket connection and attempting 
reconnect
[junit] 2016-10-27 08:49:28,424 [myid:127.0.0.1:19301] - INFO  
[main-SendThread(127.0.0.1:19301):ClientCnxn$SendThread@1113] - Opening socket 
connection to server 127.0.0.1/127.0.0.1:19301. Will not attempt to 
authenticate using SASL (unknown error)
[junit] 2016-10-27 08:49:28,424 [myid:] - INFO  [New I/O boss 
#18:ClientCnxnSocketNetty$1@127] - future isn't success, cause: {}
[junit] java.net.ConnectException: Connection refused: 
127.0.0.1/127.0.0.1:19301
[junit] at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
[junit] at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:744)
[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] 2016-10-27 08:49:28,425 [myid:] - WARN  [New I/O boss 
#18:ClientCnxnSocketNetty$ZKClientHandler@439] - Exception caught: [id: 
0xca896972] EXCEPTION: java.net.ConnectException: Connection refused: 
127.0.0.1/127.0.0.1:19301
[junit] java.net.ConnectException: Connection refused: 
127.0.0.1/127.0.0.1:19301
[junit] at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
[junit] at 
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:744)
[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)

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

2016-10-27 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper-trunk-solaris/1363/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 431712 lines...]
[junit] 2016-10-27 08:20:32,111 [myid:] - INFO  [main:ClientBase@361] - 
STARTING server instance 127.0.0.1:11222
[junit] 2016-10-27 08:20:32,111 [myid:] - INFO  [main:ZooKeeperServer@889] 
- minSessionTimeout set to 6000
[junit] 2016-10-27 08:20:32,111 [myid:] - INFO  [main:ZooKeeperServer@898] 
- maxSessionTimeout set to 6
[junit] 2016-10-27 08:20:32,111 [myid:] - INFO  [main:ZooKeeperServer@159] 
- Created server with tickTime 3000 minSessionTimeout 6000 maxSessionTimeout 
6 datadir 
/zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/ZooKeeper-trunk-solaris/build/test/tmp/test1722606804675977995.junit.dir/version-2
 snapdir 
/zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/ZooKeeper-trunk-solaris/build/test/tmp/test1722606804675977995.junit.dir/version-2
[junit] 2016-10-27 08:20:32,112 [myid:] - INFO  [main:FileSnap@83] - 
Reading snapshot 
/zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/ZooKeeper-trunk-solaris/build/test/tmp/test1722606804675977995.junit.dir/version-2/snapshot.b
[junit] 2016-10-27 08:20:32,114 [myid:] - INFO  [main:FileTxnSnapLog@306] - 
Snapshotting: 0xb to 
/zonestorage/hudson_solaris/home/hudson/hudson-slave/workspace/ZooKeeper-trunk-solaris/build/test/tmp/test1722606804675977995.junit.dir/version-2/snapshot.b
[junit] 2016-10-27 08:20:32,115 [myid:] - ERROR [main:ZooKeeperServer@501] 
- ZKShutdownHandler is not registered, so ZooKeeper server won't take any 
action on ERROR or SHUTDOWN server state changes
[junit] 2016-10-27 08:20:32,116 [myid:] - INFO  
[main:FourLetterWordMain@85] - connecting to 127.0.0.1 11222
[junit] 2016-10-27 08:20:32,116 [myid:] - INFO  
[NIOServerCxnFactory.AcceptThread:0.0.0.0/0.0.0.0:11222:NIOServerCnxnFactory$AcceptThread@296]
 - Accepted socket connection from /127.0.0.1:41813
[junit] 2016-10-27 08:20:32,117 [myid:] - INFO  
[NIOWorkerThread-1:NIOServerCnxn@485] - Processing stat command from 
/127.0.0.1:41813
[junit] 2016-10-27 08:20:32,117 [myid:] - INFO  
[NIOWorkerThread-1:StatCommand@49] - Stat command output
[junit] 2016-10-27 08:20:32,117 [myid:] - INFO  
[NIOWorkerThread-1:NIOServerCnxn@607] - Closed socket connection for client 
/127.0.0.1:41813 (no session established for client)
[junit] 2016-10-27 08:20:32,117 [myid:] - INFO  [main:JMXEnv@228] - 
ensureParent:[InMemoryDataTree, StandaloneServer_port]
[junit] 2016-10-27 08:20:32,119 [myid:] - INFO  [main:JMXEnv@245] - 
expect:InMemoryDataTree
[junit] 2016-10-27 08:20:32,119 [myid:] - INFO  [main:JMXEnv@249] - 
found:InMemoryDataTree 
org.apache.ZooKeeperService:name0=StandaloneServer_port11222,name1=InMemoryDataTree
[junit] 2016-10-27 08:20:32,119 [myid:] - INFO  [main:JMXEnv@245] - 
expect:StandaloneServer_port
[junit] 2016-10-27 08:20:32,119 [myid:] - INFO  [main:JMXEnv@249] - 
found:StandaloneServer_port 
org.apache.ZooKeeperService:name0=StandaloneServer_port11222
[junit] 2016-10-27 08:20:32,119 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@82] - Memory used 17665
[junit] 2016-10-27 08:20:32,120 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@87] - Number of threads 24
[junit] 2016-10-27 08:20:32,120 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@102] - FINISHED TEST METHOD 
testQuota
[junit] 2016-10-27 08:20:32,120 [myid:] - INFO  [main:ClientBase@543] - 
tearDown starting
[junit] 2016-10-27 08:20:32,197 [myid:] - INFO  [main:ZooKeeper@1315] - 
Session: 0x12482349dd5 closed
[junit] 2016-10-27 08:20:32,197 [myid:] - INFO  
[main-EventThread:ClientCnxn$EventThread@513] - EventThread shut down for 
session: 0x12482349dd5
[junit] 2016-10-27 08:20:32,198 [myid:] - INFO  [main:ClientBase@513] - 
STOPPING server
[junit] 2016-10-27 08:20:32,198 [myid:] - INFO  
[ConnnectionExpirer:NIOServerCnxnFactory$ConnectionExpirerThread@583] - 
ConnnectionExpirerThread interrupted
[junit] 2016-10-27 08:20:32,198 [myid:] - INFO  
[NIOServerCxnFactory.SelectorThread-0:NIOServerCnxnFactory$SelectorThread@420] 
- selector thread exitted run method
[junit] 2016-10-27 08:20:32,198 [myid:] - INFO  
[NIOServerCxnFactory.SelectorThread-1:NIOServerCnxnFactory$SelectorThread@420] 
- selector thread exitted run method
[junit] 2016-10-27 08:20:32,198 [myid:] - INFO  
[NIOServerCxnFactory.AcceptThread:0.0.0.0/0.0.0.0:11222:NIOServerCnxnFactory$AcceptThread@219]
 - accept thread exitted run method
[junit] 2016-10-27 08:20:32,199 [myid:] - INFO  [main:ZooKeeperServer@529] 
- shutting down
[junit] 2016-10-27 08:20:32,199 [myid:] - ERROR [main:ZooKeeperServer@501] 
- ZKShutdownHandler is not registered, so ZooKeeper server won't take any 
action on