[
https://issues.apache.org/jira/browse/KNOX-1670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16722999#comment-16722999
]
Kevin Risden edited comment on KNOX-1670 at 12/17/18 2:22 PM:
--------------------------------------------------------------
Here is a failure from JDK 8.
{code:java}
09:12:12 [INFO] Running
org.apache.knox.gateway.topology.monitor.RemoteConfigurationMonitorTest
09:12:14 ERROR [org.apache.knox.gateway.service.config.remote] An error
occurred interacting with the remote configuration registry :
org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth
for /auth_test/child_node/test1
09:12:16 ERROR [org.apache.zookeeper.server.quorum.QuorumCnxManager] Exception
while listening
09:12:16 java.net.SocketException: Socket closed
09:12:16 at java.net.PlainSocketImpl.socketAccept(Native Method)
09:12:16 at
java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
09:12:16 at java.net.ServerSocket.implAccept(ServerSocket.java:545)
09:12:16 at java.net.ServerSocket.accept(ServerSocket.java:513)
09:12:16 at
org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener.run(QuorumCnxManager.java:741)
09:12:16 ERROR [org.apache.zookeeper.server.quorum.QuorumCnxManager] Exception
while listening
09:12:16 java.net.SocketException: Socket closed
09:12:16 at java.net.PlainSocketImpl.socketAccept(Native Method)
09:12:16 at
java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
09:12:16 at java.net.ServerSocket.implAccept(ServerSocket.java:545)
09:12:16 at java.net.ServerSocket.accept(ServerSocket.java:513)
09:12:16 at
org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener.run(QuorumCnxManager.java:741)
09:12:16 ERROR [org.apache.zookeeper.server.quorum.QuorumCnxManager] Exception
while listening
09:12:16 java.net.SocketException: Socket closed
09:12:16 at java.net.PlainSocketImpl.socketAccept(Native Method)
09:12:16 at
java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
09:12:16 at java.net.ServerSocket.implAccept(ServerSocket.java:545)
09:12:16 at java.net.ServerSocket.accept(ServerSocket.java:513)
09:12:16 at
org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener.run(QuorumCnxManager.java:741)
09:12:17 ERROR [org.apache.curator.framework.recipes.cache.PathChildrenCache]
09:12:17 java.lang.IllegalStateException: instance must be started before
calling this method
09:12:17 at
org.apache.curator.shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:444)
09:12:17 at
org.apache.curator.framework.imps.CuratorFrameworkImpl.checkExists(CuratorFrameworkImpl.java:432)
09:12:17 at
org.apache.curator.framework.imps.CuratorFrameworkImpl.createContainers(CuratorFrameworkImpl.java:247)
09:12:17 at
org.apache.curator.framework.EnsureContainers.internalEnsure(EnsureContainers.java:69)
09:12:17 at
org.apache.curator.framework.EnsureContainers.ensure(EnsureContainers.java:53)
09:12:17 at
org.apache.curator.framework.recipes.cache.PathChildrenCache.ensurePath(PathChildrenCache.java:589)
09:12:17 at
org.apache.curator.framework.recipes.cache.PathChildrenCache.refresh(PathChildrenCache.java:488)
09:12:17 at
org.apache.curator.framework.recipes.cache.RefreshOperation.invoke(RefreshOperation.java:35)
09:12:17 at
org.apache.curator.framework.recipes.cache.PathChildrenCache$9.run(PathChildrenCache.java:786)
09:12:17 at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
09:12:17 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
09:12:17 at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
09:12:17 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
09:12:17 at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
09:12:17 at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
09:12:17 at java.lang.Thread.run(Thread.java:748)
09:12:17 ERROR [org.apache.zookeeper.server.quorum.QuorumCnxManager] Exception
while listening
09:12:17 java.net.SocketException: Socket closed
09:12:17 at java.net.PlainSocketImpl.socketAccept(Native Method)
09:12:17 at
java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
09:12:17 at java.net.ServerSocket.implAccept(ServerSocket.java:545)
09:12:17 at java.net.ServerSocket.accept(ServerSocket.java:513)
09:12:17 at
org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener.run(QuorumCnxManager.java:741)
09:12:17 ERROR [org.apache.zookeeper.server.quorum.QuorumCnxManager] Exception
while listening
09:12:17 java.net.SocketException: Socket closed
09:12:17 at java.net.PlainSocketImpl.socketAccept(Native Method)
09:12:17 at
java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
09:12:17 at java.net.ServerSocket.implAccept(ServerSocket.java:545)
09:12:17 at java.net.ServerSocket.accept(ServerSocket.java:513)
09:12:17 at
org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener.run(QuorumCnxManager.java:741)
09:12:17 ERROR [org.apache.zookeeper.server.quorum.QuorumCnxManager] Exception
while listening
09:12:17 java.net.SocketException: Socket closed
09:12:17 at java.net.PlainSocketImpl.socketAccept(Native Method)
09:12:17 at
java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
09:12:17 at java.net.ServerSocket.implAccept(ServerSocket.java:545)
09:12:17 at java.net.ServerSocket.accept(ServerSocket.java:513)
09:12:17 at
org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener.run(QuorumCnxManager.java:741)
09:12:20 ERROR [org.apache.knox.gateway.service.config.remote] An error
occurred interacting with the remote configuration registry :
org.apache.zookeeper.KeeperException$NoAuthException: KeeperErrorCode = NoAuth
for /auth_test/child_node/test1
09:12:20 ERROR [org.apache.zookeeper.server.quorum.QuorumCnxManager] Exception
while listening
09:12:20 java.net.SocketException: Socket closed
09:12:20 at java.net.PlainSocketImpl.socketAccept(Native Method)
09:12:20 at
java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
09:12:20 at java.net.ServerSocket.implAccept(ServerSocket.java:545)
09:12:20 at java.net.ServerSocket.accept(ServerSocket.java:513)
09:12:20 at
org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener.run(QuorumCnxManager.java:741)
09:12:20 ERROR [org.apache.zookeeper.server.quorum.QuorumCnxManager] Exception
while listening
09:12:20 java.net.SocketException: Socket closed
09:12:20 at java.net.PlainSocketImpl.socketAccept(Native Method)
09:12:20 at
java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
09:12:20 at java.net.ServerSocket.implAccept(ServerSocket.java:545)
09:12:20 at java.net.ServerSocket.accept(ServerSocket.java:513)
09:12:20 at
org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener.run(QuorumCnxManager.java:741)
09:12:20 ERROR [org.apache.zookeeper.server.quorum.QuorumCnxManager] Exception
while listening
09:12:20 java.net.SocketException: Socket closed
09:12:20 at java.net.PlainSocketImpl.socketAccept(Native Method)
09:12:20 at
java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
09:12:20 at java.net.ServerSocket.implAccept(ServerSocket.java:545)
09:12:20 at java.net.ServerSocket.accept(ServerSocket.java:513)
09:12:20 at
org.apache.zookeeper.server.quorum.QuorumCnxManager$Listener.run(QuorumCnxManager.java:741)
09:12:20 [ERROR] Tests run: 5, Failures: 0, Errors: 2, Skipped: 0, Time
elapsed: 8.475 s <<< FAILURE! - in
org.apache.knox.gateway.topology.monitor.RemoteConfigurationMonitorTest
09:12:20 [ERROR]
testZooKeeperConfigMonitorSASLNodesExistWithUnacceptableACL(org.apache.knox.gateway.topology.monitor.RemoteConfigurationMonitorTest)
Time elapsed: 0.013 s <<< ERROR!
09:12:20 java.lang.IllegalArgumentException: Multiple entries with same key:
InstanceSpec{dataDirectory=/tmp/1545055937495-0, port=35851,
electionPort=35483, quorumPort=43255, deleteDataDirectoryOnClose=false,
serverId=2, tickTime=-1, maxClientCnxns=-1,
customProperties={authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider,
requireClientAuthScheme=sasl}, hostname=127.0.0.1}
org.apache.curator.test.InstanceSpec@59c44188=[InstanceSpec{dataDirectory=/tmp/1545055937494-0,
port=35851, electionPort=37261, quorumPort=34571,
deleteDataDirectoryOnClose=false, serverId=1, tickTime=-1, maxClientCnxns=-1,
customProperties={authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider,
requireClientAuthScheme=sasl}, hostname=127.0.0.1}
org.apache.curator.test.InstanceSpec@59c44188,
InstanceSpec{dataDirectory=/tmp/1545055937495-0, port=35851,
electionPort=35483, quorumPort=43255, deleteDataDirectoryOnClose=false,
serverId=2, tickTime=-1, maxClientCnxns=-1,
customProperties={authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider,
requireClientAuthScheme=sasl}, hostname=127.0.0.1}
org.apache.curator.test.InstanceSpec@59c44188,
InstanceSpec{dataDirectory=/tmp/1545055937495-1, port=40895,
electionPort=40105, quorumPort=32785, deleteDataDirectoryOnClose=false,
serverId=3, tickTime=-1, maxClientCnxns=-1,
customProperties={authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider,
requireClientAuthScheme=sasl}, hostname=127.0.0.1}
org.apache.curator.test.InstanceSpec@59c4553c] and
InstanceSpec{dataDirectory=/tmp/1545055937494-0, port=35851,
electionPort=37261, quorumPort=34571, deleteDataDirectoryOnClose=false,
serverId=1, tickTime=-1, maxClientCnxns=-1,
customProperties={authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider,
requireClientAuthScheme=sasl}, hostname=127.0.0.1}
org.apache.curator.test.InstanceSpec@59c44188=[InstanceSpec{dataDirectory=/tmp/1545055937494-0,
port=35851, electionPort=37261, quorumPort=34571,
deleteDataDirectoryOnClose=false, serverId=1, tickTime=-1, maxClientCnxns=-1,
customProperties={authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider,
requireClientAuthScheme=sasl}, hostname=127.0.0.1}
org.apache.curator.test.InstanceSpec@59c44188,
InstanceSpec{dataDirectory=/tmp/1545055937495-0, port=35851,
electionPort=35483, quorumPort=43255, deleteDataDirectoryOnClose=false,
serverId=2, tickTime=-1, maxClientCnxns=-1,
customProperties={authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider,
requireClientAuthScheme=sasl}, hostname=127.0.0.1}
org.apache.curator.test.InstanceSpec@59c44188,
InstanceSpec{dataDirectory=/tmp/1545055937495-1, port=40895,
electionPort=40105, quorumPort=32785, deleteDataDirectoryOnClose=false,
serverId=3, tickTime=-1, maxClientCnxns=-1,
customProperties={authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider,
requireClientAuthScheme=sasl}, hostname=127.0.0.1}
org.apache.curator.test.InstanceSpec@59c4553c]
09:12:20 at
org.apache.knox.gateway.topology.monitor.RemoteConfigurationMonitorTest.configureAndStartZKCluster(RemoteConfigurationMonitorTest.java:170)
09:12:20 at
org.apache.knox.gateway.topology.monitor.RemoteConfigurationMonitorTest.setupTest(RemoteConfigurationMonitorTest.java:112)
09:12:20
09:12:20 [ERROR]
testZooKeeperConfigMonitorSASLNodesExistWithUnacceptableACL(org.apache.knox.gateway.topology.monitor.RemoteConfigurationMonitorTest)
Time elapsed: 0.013 s <<< ERROR!
09:12:20 java.lang.IllegalStateException: instance must be started before
calling this method
09:12:20 at
org.apache.knox.gateway.topology.monitor.RemoteConfigurationMonitorTest.tearDownTest(RemoteConfigurationMonitorTest.java:119)
09:12:20
{code}
was (Author: risdenk):
Here is a failure from JDK 8.
{code:java}
06:18:34 [INFO] Running
org.apache.knox.gateway.service.config.remote.zk.RemoteConfigurationRegistryJAASConfigTest
06:18:34 [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
0.115 s - in
org.apache.knox.gateway.service.config.remote.zk.RemoteConfigurationRegistryJAASConfigTest
06:18:34 [INFO] Running
org.apache.knox.gateway.service.config.remote.zk.RemoteConfigurationRegistryClientServiceTest
06:18:34 log4j:WARN No appenders could be found for logger
(org.apache.zookeeper.server.quorum.QuorumPeer).
06:18:34 log4j:WARN Please initialize the log4j system properly.
06:18:34 log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
for more info.
06:18:40 Dec 17, 2018 11:18:40 AM
org.apache.knox.gateway.service.config.remote.zk.CuratorClientService$ClientAdapter
listChildEntries
06:18:40 SEVERE: An error occurred interacting with the remote configuration
registry : org.apache.zookeeper.KeeperException$NoAuthException:
KeeperErrorCode = NoAuth for /someotherconfig
06:18:46 Dec 17, 2018 11:18:46 AM
org.apache.knox.gateway.service.config.remote.zk.CuratorClientService$ClientAdapter
listChildEntries
06:18:46 SEVERE: An error occurred interacting with the remote configuration
registry : org.apache.zookeeper.KeeperException$NoAuthException:
KeeperErrorCode = NoAuth for /someotherconfig
06:18:46 Dec 17, 2018 11:18:46 AM
org.apache.knox.gateway.service.config.remote.zk.CuratorClientService$ClientAdapter
createEntry
06:18:46 SEVERE: An error occurred interacting with the remote configuration
registry : org.apache.zookeeper.KeeperException$NodeExistsException:
KeeperErrorCode = NodeExists for /clientServiceTestNode
06:18:51 Dec 17, 2018 11:18:51 AM
org.apache.knox.gateway.service.config.remote.zk.CuratorClientService init
06:18:51 WARNING: Multiple remote configuration registries are not currently
supported if any of them requires authentication.
06:18:54 Dec 17, 2018 11:18:54 AM
org.apache.knox.gateway.service.config.remote.zk.CuratorClientService$ClientAdapter
createEntry
06:18:54 SEVERE: An error occurred interacting with the remote configuration
registry : org.apache.zookeeper.KeeperException$NoNodeException:
KeeperErrorCode = NoNode for /clientServiceTestNode/mydata
06:18:54 Dec 17, 2018 11:18:54 AM
org.apache.knox.gateway.service.config.remote.zk.CuratorClientService$ClientAdapter
getEntryData
06:18:54 SEVERE: An error occurred interacting with the remote configuration
registry : org.apache.zookeeper.KeeperException$NoNodeException:
KeeperErrorCode = NoNode for /clientServiceTestNode/mydata
06:18:54 [ERROR] Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time
elapsed: 20.377 s <<< FAILURE! - in
org.apache.knox.gateway.service.config.remote.zk.RemoteConfigurationRegistryClientServiceTest
06:18:54 [ERROR]
testMultipleUnsecuredZooKeeperWithSimpleRegistryConfig(org.apache.knox.gateway.service.config.remote.zk.RemoteConfigurationRegistryClientServiceTest)
Time elapsed: 5.054 s <<< FAILURE!
06:18:54 java.lang.AssertionError
06:18:54 at
org.apache.knox.gateway.service.config.remote.zk.RemoteConfigurationRegistryClientServiceTest.doTestZooKeeperClient(RemoteConfigurationRegistryClientServiceTest.java:383)
06:18:54 at
org.apache.knox.gateway.service.config.remote.zk.RemoteConfigurationRegistryClientServiceTest.testMultipleUnsecuredZooKeeperWithSimpleRegistryConfig(RemoteConfigurationRegistryClientServiceTest.java:134)
06:18:54
06:18:54 [INFO] Running
org.apache.knox.gateway.service.config.remote.config.RemoteConfigurationRegistryConfigParserTest
06:18:54 [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
0.016 s - in
org.apache.knox.gateway.service.config.remote.config.RemoteConfigurationRegistryConfigParserTest
06:18:54 [INFO] Running
org.apache.knox.gateway.service.config.remote.config.DefaultRemoteConfigurationRegistriesTest
06:18:54 [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
0 s - in
org.apache.knox.gateway.service.config.remote.config.DefaultRemoteConfigurationRegistriesTest
06:18:55 [INFO]
06:18:55 [INFO] Results:
06:18:55 [INFO]
06:18:55 [ERROR] Failures:
06:18:55 [ERROR]
RemoteConfigurationRegistryClientServiceTest.testMultipleUnsecuredZooKeeperWithSimpleRegistryConfig:134->doTestZooKeeperClient:383
{code}
> ZK Tests IllegalArgument and IllegalState errors
> ------------------------------------------------
>
> Key: KNOX-1670
> URL: https://issues.apache.org/jira/browse/KNOX-1670
> Project: Apache Knox
> Issue Type: Test
> Reporter: Kevin Risden
> Assignee: Kevin Risden
> Priority: Major
> Fix For: 1.3.0
>
>
> I've seen the following failure a few times and not entirely sure what causes
> it. Would be good to track down. I think it can happen in most of the ZK
> related tests.
> {code:java}
> [ERROR] Errors:
> [ERROR]
> org.apache.knox.gateway.topology.monitor.RemoteConfigurationMonitorTest.testZooKeeperConfigMonitorSASLNodesExistWithAcceptableACL(org.apache.knox.gateway.topology.monitor.RemoteConfigurationMonitorTest)
> [ERROR] Run 1:
> RemoteConfigurationMonitorTest.setupTest:111->configureAndStartZKCluster:168
> » IllegalArgument
> [ERROR] Run 2: RemoteConfigurationMonitorTest.tearDownTest:118 »
> IllegalState instance must b...
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)