Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-4395

SimpleSysTest.testSimpleCase ConnectionLoss

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • tests
    • None
    • docker centos 7.8

      java openjdk 1.8

       

    Description

      org.apache.zookeeper.test.system.SimpleSysTest.testSimpleCase
      
      
      KeeperErrorCode = ConnectionLoss for /sysTest/availableСтек 
      
      
      org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /sysTest/available
      	at org.apache.zookeeper.KeeperException.create(KeeperException.java:102)
      	at org.apache.zookeeper.KeeperException.create(KeeperException.java:54)
      	at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:2366)
      	at org.apache.zookeeper.test.system.InstanceManager.<init>(InstanceManager.java:101)
      	at org.apache.zookeeper.test.system.BaseSysTest.setUp(BaseSysTest.java:60)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
      	at org.junit.internal.runners.statements.RunBefores.invokeMethod(RunBefores.java:33)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
      	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
      	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
      	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
      	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
      	at org.junit.vintage.engine.execution.RunnerExecutor.execute(RunnerExecutor.java:43)
      	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
      	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      	at java.util.Iterator.forEachRemaining(Iterator.java:116)
      	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
      	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
      	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
      	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
      	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
      	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485)
      	at org.junit.vintage.engine.VintageTestEngine.executeAllChildren(VintageTestEngine.java:82)
      	at org.junit.vintage.engine.VintageTestEngine.execute(VintageTestEngine.java:73)
      	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:220)
      	at org.junit.platform.launcher.core.DefaultLauncher.lambda$execute$6(DefaultLauncher.java:188)
      	at org.junit.platform.launcher.core.DefaultLauncher.withInterceptedStreams(DefaultLauncher.java:202)
      	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:181)
      	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:128)
      	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:142)
      	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:117)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
      	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
      
      
      
      (STDOUT)2021-10-12 15:35:45,291 [myid:] - INFO  [main:Environment@98] - Client environment:zookeeper.version=3.6.2-3.5.0.2-1-SNAPSHOT-d329520cef8878e30344bf627dc694dcd151c8f9-dirty, built on 2021-10-12 15:11 UTC
      2021-10-12 15:35:45,295 [myid:] - INFO  [main:Environment@98] - Client environment:host.name=e3a73c76c1c7
      2021-10-12 15:35:45,296 [myid:] - INFO  [main:Environment@98] - Client environment:java.version=1.8.0_262
      2021-10-12 15:35:45,296 [myid:] - INFO  [main:Environment@98] - Client environment:java.vendor=Oracle Corporation
      2021-10-12 15:35:45,296 [myid:] - INFO  [main:Environment@98] - Client environment:java.home=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.262.b10-0.el7_8.x86_64/jre
      2021-10-12 15:35:45,296 [myid:] - INFO  [main:Environment@98] - Client environment:java.class.path=/var/lib/jenkins_slave/workspace/r_feature_SDP-3143_upgrade_to_37/zookeeper-it/target/classes:/var/lib/jenkins_slave/workspace/r_feature_SDP-3143_upgrade_to_37/zookeeper-it/target/classes:/var/lib/jenkins_slave/workspace/r_feature_SDP-3143_upgrade_to_37/zookeeper-server/target/classes:/var/lib/jenkins_slave/workspace/r_feature_SDP-3143_upgrade_to_37/zookeeper-jute/target/zookeeper-jute-3.6.2.3.5.0.2-1-SNAPSHOT.jar:/var/cache/.m2/repository/org/apache/yetus/audience-annotations/0.12.0/audience-annotations-0.12.0.jar:/var/cache/.m2/repository/io/netty/netty-handler/4.1.59.Final/netty-handler-4.1.59.Final.jar:/var/cache/.m2/repository/io/netty/netty-common/4.1.59.Final/netty-common-4.1.59.Final.jar:/var/cache/.m2/repository/io/netty/netty-resolver/4.1.59.Final/netty-resolver-4.1.59.Final.jar:/var/cache/.m2/repository/io/netty/netty-buffer/4.1.59.Final/netty-buffer-4.1.59.Final.jar:/var/cache/.m2/repository/io/netty/netty-transport/4.1.59.Final/netty-transport-4.1.59.Final.jar:/var/cache/.m2/repository/io/netty/netty-codec/4.1.59.Final/netty-codec-4.1.59.Final.jar:/var/cache/.m2/repository/io/netty/netty-transport-native-epoll/4.1.59.Final/netty-transport-native-epoll-4.1.59.Final.jar:/var/cache/.m2/repository/io/netty/netty-transport-native-unix-common/4.1.59.Final/netty-transport-native-unix-common-4.1.59.Final.jar:/var/cache/.m2/repository/org/slf4j/slf4j-api/1.7.30/slf4j-api-1.7.30.jar:/var/cache/.m2/repository/org/slf4j/slf4j-log4j12/1.7.30/slf4j-log4j12-1.7.30.jar:/var/cache/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/var/lib/jenkins_slave/workspace/r_feature_SDP-3143_upgrade_to_37/zookeeper-server/target/test-classes:/var/cache/.m2/repository/org/junit/vintage/junit-vintage-engine/5.6.2/junit-vintage-engine-5.6.2.jar:/var/cache/.m2/repository/org/apiguardian/apiguardian-api/1.1.0/apiguardian-api-1.1.0.jar:/var/cache/.m2/repository/org/junit/platform/junit-platform-engine/1.6.2/junit-platform-engine-1.6.2.jar:/var/cache/.m2/repository/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar:/var/cache/.m2/repository/org/junit/platform/junit-platform-commons/1.6.2/junit-platform-commons-1.6.2.jar:/var/cache/.m2/repository/junit/junit/4.13/junit-4.13.jar:/var/cache/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/var/cache/.m2/repository/org/openjdk/jmh/jmh-core/1.23/jmh-core-1.23.jar:/var/cache/.m2/repository/net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.jar:/var/cache/.m2/repository/org/apache/commons/commons-math3/3.2/commons-math3-3.2.jar:/var/cache/.m2/repository/org/openjdk/jmh/jmh-generator-annprocess/1.23/jmh-generator-annprocess-1.23.jar:
      2021-10-12 15:35:45,296 [myid:] - INFO  [main:Environment@98] - Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
      2021-10-12 15:35:45,296 [myid:] - INFO  [main:Environment@98] - Client environment:java.io.tmpdir=/tmp
      2021-10-12 15:35:45,297 [myid:] - INFO  [main:Environment@98] - Client environment:java.compiler=<NA>
      2021-10-12 15:35:45,297 [myid:] - INFO  [main:Environment@98] - Client environment:os.name=Linux
      2021-10-12 15:35:45,297 [myid:] - INFO  [main:Environment@98] - Client environment:os.arch=amd64
      2021-10-12 15:35:45,297 [myid:] - INFO  [main:Environment@98] - Client environment:os.version=3.10.0-1160.36.2.el7.x86_64
      2021-10-12 15:35:45,297 [myid:] - INFO  [main:Environment@98] - Client environment:user.name=jenkins
      2021-10-12 15:35:45,297 [myid:] - INFO  [main:Environment@98] - Client environment:user.home=/var/cache
      2021-10-12 15:35:45,297 [myid:] - INFO  [main:Environment@98] - Client environment:user.dir=/var/lib/jenkins_slave/workspace/r_feature_SDP-3143_upgrade_to_37/zookeeper-it
      2021-10-12 15:35:45,297 [myid:] - INFO  [main:Environment@98] - Client environment:os.memory.free=1829MB
      2021-10-12 15:35:45,299 [myid:] - INFO  [main:Environment@98] - Client environment:os.memory.max=27305MB
      2021-10-12 15:35:45,299 [myid:] - INFO  [main:Environment@98] - Client environment:os.memory.total=1930MB
      2021-10-12 15:35:45,303 [myid:] - INFO  [main:ZooKeeper@637] - Initiating client connection, connectString=e3a73c76c1c7:2181 sessionTimeout=15000 watcher=org.apache.zookeeper.test.system.BaseSysTest$1@77ec78b9
      2021-10-12 15:35:45,308 [myid:] - INFO  [main:X509Util@77] - Setting -D jdk.tls.rejectClientInitiatedRenegotiation=true to disable client-initiated TLS renegotiation
      2021-10-12 15:35:45,313 [myid:] - INFO  [main:ClientCnxnSocket@239] - jute.maxbuffer value is 1048575 Bytes
      2021-10-12 15:35:45,321 [myid:] - INFO  [main:ClientCnxn@1726] - zookeeper.request.timeout value is 0. feature enabled=false
      2021-10-12 15:35:45,330 [myid:e3a73c76c1c7:2181] - INFO  [main-SendThread(e3a73c76c1c7:2181):ClientCnxn$SendThread@1171] - Opening socket connection to server e3a73c76c1c7/172.17.0.5:2181.
      2021-10-12 15:35:45,330 [myid:e3a73c76c1c7:2181] - INFO  [main-SendThread(e3a73c76c1c7:2181):ClientCnxn$SendThread@1173] - SASL config status: Will not attempt to authenticate using SASL (unknown error)
      2021-10-12 15:35:45,336 [myid:e3a73c76c1c7:2181] - WARN  [main-SendThread(e3a73c76c1c7:2181):ClientCnxn$SendThread@1290] - Session 0x0 for sever e3a73c76c1c7/172.17.0.5:2181, Closing socket connection. Attempting reconnect except it is a SessionExpiredException.
      java.net.ConnectException: Connection refused
      	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
      	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:714)
      	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:344)
      	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1280)
      2021-10-12 15:35:46,441 [myid:e3a73c76c1c7:2181] - INFO  [main-SendThread(e3a73c76c1c7:2181):ClientCnxn$SendThread@1171] - Opening socket connection to server e3a73c76c1c7/172.17.0.5:2181.
      2021-10-12 15:35:46,442 [myid:e3a73c76c1c7:2181] - INFO  [main-SendThread(e3a73c76c1c7:2181):ClientCnxn$SendThread@1173] - SASL config status: Will not attempt to authenticate using SASL (unknown error)
      2021-10-12 15:35:46,442 [myid:e3a73c76c1c7:2181] - WARN  [main-SendThread(e3a73c76c1c7:2181):ClientCnxn$SendThread@1290] - Session 0x0 for sever e3a73c76c1c7/172.17.0.5:2181, Closing socket connection. Attempting reconnect except it is a SessionExpiredException.
      java.net.ConnectException: Connection refused
      	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
      	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:714)
      	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:344)
      	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1280)
      2021-10-12 15:35:47,543 [myid:e3a73c76c1c7:2181] - INFO  [main-SendThread(e3a73c76c1c7:2181):ClientCnxn$SendThread@1171] - Opening socket connection to server e3a73c76c1c7/172.17.0.5:2181.
      2021-10-12 15:35:47,544 [myid:e3a73c76c1c7:2181] - INFO  [main-SendThread(e3a73c76c1c7:2181):ClientCnxn$SendThread@1173] - SASL config status: Will not attempt to authenticate using SASL (unknown error)
      2021-10-12 15:35:47,544 [myid:e3a73c76c1c7:2181] - WARN  [main-SendThread(e3a73c76c1c7:2181):ClientCnxn$SendThread@1290] - Session 0x0 for sever e3a73c76c1c7/172.17.0.5:2181, Closing socket connection. Attempting reconnect except it is a SessionExpiredException.
      java.net.ConnectException: Connection refused
      	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
      	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:714)
      	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:344)
      	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1280)
      2021-10-12 15:35:48,645 [myid:e3a73c76c1c7:2181] - INFO  [main-SendThread(e3a73c76c1c7:2181):ClientCnxn$SendThread@1171] - Opening socket connection to server e3a73c76c1c7/172.17.0.5:2181.
      2021-10-12 15:35:48,645 [myid:e3a73c76c1c7:2181] - INFO  [main-SendThread(e3a73c76c1c7:2181):ClientCnxn$SendThread@1173] - SASL config status: Will not attempt to authenticate using SASL (unknown error)
      2021-10-12 15:35:48,646 [myid:e3a73c76c1c7:2181] - WARN  [main-SendThread(e3a73c76c1c7:2181):ClientCnxn$SendThread@1290] - Session 0x0 for sever e3a73c76c1c7/172.17.0.5:2181, Closing socket connection. Attempting reconnect except it is a SessionExpiredException.
      java.net.ConnectException: Connection refused
      	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
      	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:714)
      	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:344)
      	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1280)
      2021-10-12 15:35:49,747 [myid:e3a73c76c1c7:2181] - INFO  [main-SendThread(e3a73c76c1c7:2181):ClientCnxn$SendThread@1171] - Opening socket connection to server e3a73c76c1c7/172.17.0.5:2181.
      2021-10-12 15:35:49,747 [myid:e3a73c76c1c7:2181] - INFO  [main-SendThread(e3a73c76c1c7:2181):ClientCnxn$SendThread@1173] - SASL config status: Will not attempt to authenticate using SASL (unknown error)
      2021-10-12 15:35:49,748 [myid:e3a73c76c1c7:2181] - WARN  [main-SendThread(e3a73c76c1c7:2181):ClientCnxn$SendThread@1290] - Session 0x0 for sever e3a73c76c1c7/172.17.0.5:2181, Closing socket connection. Attempting reconnect except it is a SessionExpiredException.
      java.net.ConnectException: Connection refused
      	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
      	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:714)
      	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:344)
      	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1280)
      2021-10-12 15:35:50,849 [myid:e3a73c76c1c7:2181] - INFO  [main-SendThread(e3a73c76c1c7:2181):ClientCnxn$SendThread@1171] - Opening socket connection to server e3a73c76c1c7/172.17.0.5:2181.
      2021-10-12 15:35:50,849 [myid:e3a73c76c1c7:2181] - INFO  [main-SendThread(e3a73c76c1c7:2181):ClientCnxn$SendThread@1173] - SASL config status: Will not attempt to authenticate using SASL (unknown error)
      2021-10-12 15:35:50,849 [myid:e3a73c76c1c7:2181] - WARN  [main-SendThread(e3a73c76c1c7:2181):ClientCnxn$SendThread@1290] - Session 0x0 for sever e3a73c76c1c7/172.17.0.5:2181, Closing socket connection. Attempting reconnect except it is a SessionExpiredException.
      java.net.ConnectException: Connection refused
      	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
      	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:714)
      	at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:344)
      	at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1280)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            aemelyanenko94 Andrey Emelyanenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: