[jira] [Created] (ZOOKEEPER-3700) Several types of QuorumCxnManager connection error logs include exception text that add no value

2020-01-19 Thread Jason Kania (Jira)
Jason Kania created ZOOKEEPER-3700:
--

 Summary: Several types of QuorumCxnManager connection error logs 
include exception text that add no value
 Key: ZOOKEEPER-3700
 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3700
 Project: ZooKeeper
  Issue Type: Improvement
  Components: quorum
Affects Versions: 3.5.6
Reporter: Jason Kania


Currently the QuorumCxnManager connectOne method dumps an exception when it 
encounters java.net.SocketTimeoutException: Read timed out, or 
java.net.ConnectException: Connection refused in addition to providing an error 
message.

As an example, the following output is seen:

[2020-01-20 00:21:23,828] WARN Cannot open channel to 3 at election address 
aaa-3/10.0.1.3:3888 (org.apache.zookeeper.server.quorum.QuorumCnxManager)
java.net.ConnectException: Connection refused (Connection refused)
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
 at 
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
 at java.net.Socket.connect(Socket.java:607)
 at 
org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:558)
 at 
org.apache.zookeeper.server.quorum.QuorumCnxManager.connectAll(QuorumCnxManager.java:610)
 at 
org.apache.zookeeper.server.quorum.FastLeaderElection.lookForLeader(FastLeaderElection.java:838)

 

These exceptions are frequently output when launching and restarting several 
zookeeper servers and create confusion in what are normal operations and 
expected errors. I would suggest a few of these specific expected errors could 
be detected and reduced to only the text error output without the accompanying 
exception

When launching the first node in a 3 node quorum cluster, about 120 lines of 
error output are generated for a working launch.

I would be happy to make some of these changes if this approach is agreeable to 
the maintainers. My approach would be to look for the specific standard 
conditions in the exception handling and eliminate the exception stack trace 
where in these cases.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


Jenkins build is back to stable : zookeeper-master-maven-jdk13 #23

2020-01-19 Thread Apache Jenkins Server
See 




Re: Snapshots of ZooKeeper 3.6.0-SNAPSHOT available for testing

2020-01-19 Thread Shashwat Shriparv
unsubscribe

On Tue, 7 Jan 2020 at 22:18, Enrico Olivelli  wrote:

> Hi,
> I have deployed to https://repository.apache.org/snapshots/ a version of
> ZooKeeper built from branch-3.6.
>
> This way you can try it just by adding these lines to your pom.xml
>
>  
> apache-snapshots
> 
> true
> 
> https://repository.apache.org/snapshots/
> 
>
> We did the best to keep ZooKeeper 3.6.0 compatible with 3.5, but if you
> have cycles to try your application with 3.6.0-SNAPSHOT this will help a
> lot in fixing problems before the official VOTE thread.
>
> We are still waiting for the last patch for 3.6.0stay tuned
>
> Best regards
> Enrico
>


Build failed in Jenkins: zookeeper-master-maven-jdk12 #329

2020-01-19 Thread Apache Jenkins Server
See 


Changes:


--
[...truncated 398.04 KB...]
checking for gethostbyname... yes
checking for gethostname... yes
checking for getlogin... yes
checking for getpwuid_r... yes
checking for gettimeofday... yes
checking for getuid... yes
checking for memmove... yes
checking for memset... yes
checking for poll... yes
checking for socket... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strtol... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) 
@ zookeeper-client-c ---
[INFO] 
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ 
zookeeper-client-c ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 

[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ 
zookeeper-client-c ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-antrun-plugin:1.8:run (build-c-client) @ zookeeper-client-c ---
[WARNING] Parameter tasks is deprecated, use target instead
[INFO] Executing tasks

main:
 [exec]  rm -f cli_st cli_mt load_gen
 [exec]  rm -f zktest-st zktest-mt
 [exec] test -z "libzookeeper_st.la libzookeeper_mt.la" || rm -f 
libzookeeper_st.la libzookeeper_mt.la
 [exec] rm -f ./so_locations
 [exec] rm -rf .libs _libs
 [exec] rm -f zktest_st-TestDriver.o zktest_st-LibCMocks.o 
zktest_st-LibCSymTable.o zktest_st-MocksBase.o zktest_st-ZKMocks.o 
zktest_st-Util.o zktest_st-ThreadingUtil.o zktest_st-TestZookeeperInit.o 
zktest_st-TestZookeeperClose.o zktest_st-TestReconfig.o 
zktest_st-TestReconfigServer.o zktest_st-TestClientRetry.o 
zktest_st-TestOperations.o zktest_st-TestMulti.o zktest_st-TestWatchers.o 
zktest_st-TestClient.o zktest_st-ZooKeeperQuorumServer.o 
zktest_st-TestReadOnlyClient.o zktest_st-TestLogClientEnv.o 
zktest_st-TestServerRequireClientSASLAuth.o zktest_mt-TestDriver.o 
zktest_mt-LibCMocks.o zktest_mt-LibCSymTable.o zktest_mt-MocksBase.o 
zktest_mt-ZKMocks.o zktest_mt-Util.o zktest_mt-ThreadingUtil.o 
zktest_mt-TestZookeeperInit.o zktest_mt-TestZookeeperClose.o 
zktest_mt-TestReconfig.o zktest_mt-TestReconfigServer.o 
zktest_mt-TestClientRetry.o zktest_mt-TestOperations.o zktest_mt-TestMulti.o 
zktest_mt-TestWatchers.o zktest_mt-TestClient.o 
zktest_mt-ZooKeeperQuorumServer.o zktest_mt-TestReadOnlyClient.o 
zktest_mt-TestLogClientEnv.o zktest_mt-TestServerRequireClientSASLAuth.o 
zktest_mt-PthreadMocks.o
 [exec] rm -f docs/zookeeper.tag -r docs/html
 [exec] test -z "libhashtable.la libzkst.la libzkmt.la" || rm -f 
libhashtable.la libzkst.la libzkmt.la
 [exec] rm -f ./so_locations
 [exec] rm -f *.o
 [exec] rm -f *.lo
 [exec] /bin/bash ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H 
-I. 
-I
  
-I
 
-I
 
-I
  -DHAVE_OPENSSL_H  -Wall -Werror -Wdeclaration-after-statement  -g -O2 
-D_GNU_SOURCE -MT zookeeper.lo -MD -MP -MF .deps/zookeeper.Tpo -c -o 
zookeeper.lo `test -f 'src/zookeeper.c' || echo 
'
 [exec] libtool: compile:  gcc -DHAVE_CONFIG_H -I. 
-I
 
-I
 
-I
 
-I
 -DHAVE_OPENSSL_H -Wall -Werror -Wdeclaration-after-statement -g -O2 
-D_GNU_SOURCE -MT zookeeper.lo -MD -MP -MF .deps/zookeeper.Tpo -c 

  -fPIC -DPIC -o .libs/zookeeper.o
 [exec] libtool: compile:  gcc -DHAVE_CONFIG_H -I. 

Build failed in Jenkins: zookeeper-master-maven-owasp #330

2020-01-19 Thread Apache Jenkins Server
See 


Changes:


--
[...truncated 262.98 KB...]
Generating 

Generating 

Generating 

Generating 

Generating 

Generating 

Generating 

Generating 

Generating 

Generating 

Generating 

Generating 

Generating 

Generating 

Generating 

Generating 

Generating 

Generating 

Generating 

Building index for all the packages and classes...
Generating 

Generating 

Generating 

Building index for all classes...
Generating 

Generating 

Generating 

Generating 

Generating 

46 warnings
[WARNING] Javadoc Warnings
[WARNING] 
:513:
 warning - @return tag has no arguments.
[WARNING] 
:317:
 warning - @return tag has no arguments.
[WARNING] 
:554:
 warning - @return tag has no