[jira] [Created] (ZOOKEEPER-2105) PrintWriter left unclosed in NIOServerCnxn#checkFourLetterWord

2015-01-09 Thread Ted Yu (JIRA)
Ted Yu created ZOOKEEPER-2105:
-

 Summary: PrintWriter left unclosed in 
NIOServerCnxn#checkFourLetterWord
 Key: ZOOKEEPER-2105
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2105
 Project: ZooKeeper
  Issue Type: Bug
Reporter: Ted Yu
Priority: Minor


{code}
final PrintWriter pwriter = new PrintWriter(
new BufferedWriter(new SendBufferWriter()));
{code}
pwriter should be closed upon return from the method.



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


[jira] [Commented] (ZOOKEEPER-2105) PrintWriter left unclosed in NIOServerCnxn#checkFourLetterWord

2015-01-09 Thread Ted Yu (JIRA)

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

Ted Yu commented on ZOOKEEPER-2105:
---

NettyServerCnxn#checkFourLetterWord() has similar issue.

 PrintWriter left unclosed in NIOServerCnxn#checkFourLetterWord
 --

 Key: ZOOKEEPER-2105
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2105
 Project: ZooKeeper
  Issue Type: Bug
Reporter: Ted Yu
Priority: Minor

 {code}
 final PrintWriter pwriter = new PrintWriter(
 new BufferedWriter(new SendBufferWriter()));
 {code}
 pwriter should be closed upon return from the method.



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


[jira] [Created] (ZOOKEEPER-2104) Sudden crash of all nodes in the cluster

2015-01-09 Thread Benjamin Jaton (JIRA)
Benjamin Jaton created ZOOKEEPER-2104:
-

 Summary: Sudden crash of all nodes in the cluster
 Key: ZOOKEEPER-2104
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2104
 Project: ZooKeeper
  Issue Type: Bug
  Components: server
Affects Versions: 3.4.6
Reporter: Benjamin Jaton


In a 3 nodes ensemble, suddenly all the nodes seem to fail, displaying 
ZooKeeper is not running messages.
Not retry seems to be happening after that.

This a request to understand what happened and probably to improve the logs 
when it does.

See logs below:

NODE1:

-- no log for several days before this --
2015-01-04 16:18:22,259 [myid:1] - WARN  [SyncThread:1:FileTxnLog@321] - 
fsync-ing the write ahead log in SyncThread:1 took 11024ms which will adversely 
effect operation latency. See the ZooKeeper troubleshooting guide
2015-01-04 16:18:22,380 [myid:1] - WARN  
[QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:Follower@89] - Exception when 
following the leader
java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:392)
at 
org.apache.jute.BinaryInputArchive.readInt(BinaryInputArchive.java:63)
at 
org.apache.zookeeper.server.quorum.QuorumPacket.deserialize(QuorumPacket.java:83)
at 
org.apache.jute.BinaryInputArchive.readRecord(BinaryInputArchive.java:103)
at 
org.apache.zookeeper.server.quorum.Learner.readPacket(Learner.java:153)
at 
org.apache.zookeeper.server.quorum.Follower.followLeader(Follower.java:85)
at 
org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:786)
2015-01-04 16:18:23,384 [myid:1] - WARN  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@362] - Exception 
causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not 
running
2015-01-04 16:18:23,492 [myid:1] - WARN  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@362] - Exception 
causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not 
running
2015-01-04 16:18:24,060 [myid:1] - WARN  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@362] - Exception 
causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not 
running


NODE2:

-- no log for several days before this --
2015-01-04 16:18:21,899 [myid:3] - WARN  
[QuorumPeer[myid=3]/0:0:0:0:0:0:0:0:2181:Follower@89] - Exception when 
following the leader
java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:392)
at 
org.apache.jute.BinaryInputArchive.readInt(BinaryInputArchive.java:63)
at 
org.apache.zookeeper.server.quorum.QuorumPacket.deserialize(QuorumPacket.java:83)
at 
org.apache.jute.BinaryInputArchive.readRecord(BinaryInputArchive.java:103)
at 
org.apache.zookeeper.server.quorum.Learner.readPacket(Learner.java:153)
at 
org.apache.zookeeper.server.quorum.Follower.followLeader(Follower.java:85)
at 
org.apache.zookeeper.server.quorum.QuorumPeer.run(QuorumPeer.java:786)
2015-01-04 16:18:22,760 [myid:3] - WARN  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@362] - Exception 
causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not 
running
2015-01-04 16:18:22,801 [myid:3] - WARN  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@362] - Exception 
causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not 
running
2015-01-04 16:18:22,886 [myid:3] - WARN  
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@362] - Exception 
causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not 
running


NODE3 (leader):

-- no log for several days before this --
2015-01-04 16:18:21,897 [myid:2] - WARN  
[QuorumPeer[myid=2]/0:0:0:0:0:0:0:0:2181:LearnerHandler@687] - Closing 
connection to peer due to transaction timeout.
2015-01-04 16:18:21,898 [myid:2] - WARN  
[LearnerHandler-/204.53.107.249:43402:LearnerHandler@646] - *** GOODBYE 
/204.53.107.249:43402 
2015-01-04 16:18:21,905 [myid:2] - WARN  
[QuorumPeer[myid=2]/0:0:0:0:0:0:0:0:2181:LearnerHandler@687] - Closing 
connection to peer due to transaction timeout.
2015-01-04 16:18:21,907 [myid:2] - WARN  
[LearnerHandler-/204.53.107.247:45953:LearnerHandler@646] - *** GOODBYE 
/204.53.107.247:45953 
2015-01-04 16:18:21,918 [myid:2] - WARN  
[LearnerHandler-/204.53.107.247:45953:LearnerHandler@658] - Ignoring unexpected 
exception
java.lang.InterruptedException
at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(AbstractQueuedSynchronizer.java:1219)
at 
java.util.concurrent.locks.ReentrantLock.lockInterruptibly(ReentrantLock.java:340)
at 
java.util.concurrent.LinkedBlockingQueue.put(LinkedBlockingQueue.java:338)
at 
org.apache.zookeeper.server.quorum.LearnerHandler.shutdown(LearnerHandler.java:656)
at 

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

2015-01-09 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper-trunk-solaris/905/

###
## LAST 60 LINES OF THE CONSOLE 
###
Started by timer
Building remotely on solaris1 (Solaris) in workspace 
/export/home/hudson/hudson-slave/workspace/ZooKeeper-trunk-solaris
Updating http://svn.apache.org/repos/asf/zookeeper/trunk at revision 
'2015-01-09T08:30:00.969 +'
At revision 1650459
Updating http://svn.apache.org/repos/asf/hadoop/nightly at revision 
'2015-01-09T08:30:00.969 +'
At revision 1650459
no change for http://svn.apache.org/repos/asf/zookeeper/trunk since the 
previous build
no change for http://svn.apache.org/repos/asf/hadoop/nightly since the previous 
build
No emails were triggered.
[locks-and-latches] Checking to see if we really have the locks
[locks-and-latches] Have all the locks, build can start
[ZooKeeper-trunk-solaris] $ /bin/bash /var/tmp/hudson1351062665424449796.sh
[trunk] $ 
/export/home/hudson/hudson-slave/tools/hudson.tasks.Ant_AntInstallation/ant-1.8.2/bin/ant
 -DBUILD_ARGS=-Dfindbugs.home=${FINDBUGS_HOME} -Dforrest.home=${FORREST_HOME} 
-Djava5.home=${JAVA5_HOME} -DBUILD_TARGETS=hudson-test-trunk 
-DANALYSIS_TARGETS=test -DBUILD_FLAGS=-Dtest.junit.output.format=xml 
-Dtest.output=yes  -Dtest.output=yes -Dtest.junit.output.format=xml clean 
test-core-java
Error: JAVA_HOME is not defined correctly.
  We cannot execute /home/jenkins/tools/java/latest1.7/bin/java
Build step 'Invoke Ant' marked build as failure
[locks-and-latches] Releasing all the locks
[locks-and-latches] All the locks released
Recording test results
Email was triggered for: Failure
Sending email for trigger: Failure



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

ZooKeeper-trunk - Build # 2558 - Still Failing

2015-01-09 Thread Apache Jenkins Server
See https://builds.apache.org/job/ZooKeeper-trunk/2558/

###
## LAST 60 LINES OF THE CONSOLE 
###
[...truncated 2963 lines...]
   [clover] Updating existing database at 
'/home/jenkins/jenkins-slave/workspace/ZooKeeper-trunk/trunk/build/test/clover/db/zookeeper_coverage.db'.
   [clover] Processing files at 1.3 source level.
   [clover] 
/home/jenkins/jenkins-slave/workspace/ZooKeeper-trunk/trunk/src/java/main/org/apache/zookeeper/KeeperException.java:318:24:unexpected
 token: Code
   [clover] 
/home/jenkins/jenkins-slave/workspace/ZooKeeper-trunk/trunk/src/java/main/org/apache/zookeeper/KeeperException.java:318:24:unexpected
 token: Code
   [clover] ** Error(s) occurred and the instrumentation process can't continue.

BUILD FAILED
/home/jenkins/jenkins-slave/workspace/ZooKeeper-trunk/trunk/build.xml:1422: The 
following error occurred while executing this line:
/home/jenkins/jenkins-slave/workspace/ZooKeeper-trunk/trunk/build.xml:432: 
com.cenqua.clover.CloverException: 
/home/jenkins/jenkins-slave/workspace/ZooKeeper-trunk/trunk/src/java/main/org/apache/zookeeper/KeeperException.java:318:24:unexpected
 token: Code
at 
com.cenqua.clover.instr.Instrumenter.instrument(Instrumenter.java:155)
at 
org.apache.tools.ant.taskdefs.CloverCompilerAdapter.setJavac(CloverCompilerAdapter.java:339)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1156)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:935)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at 
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 5 seconds
Build step 'Execute shell' marked build as failure
[FINDBUGS] Skipping publisher since build result is FAILURE
[WARNINGS] Skipping publisher since build result is FAILURE
Archiving artifacts
Sending artifact delta relative to ZooKeeper-trunk #2531
Archived 3 artifacts
Archive block size is 32768
Received 0 blocks and 18056008 bytes
Compression is 0.0%
Took 4.8 sec
Recording fingerprints
Recording test results
Publishing Javadoc
Email was triggered for: Failure
Sending email for trigger: Failure



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