Sandor Molnar created KNOX-2062:
-----------------------------------

             Summary: RemoteConfigurationMonitorTest failures in Travis CI
                 Key: KNOX-2062
                 URL: https://issues.apache.org/jira/browse/KNOX-2062
             Project: Apache Knox
          Issue Type: Improvement
          Components: Build
    Affects Versions: 1.4.0
            Reporter: Sandor Molnar


Travis CI builds are failing sporadically with the following error:
{code:java}

java.lang.IllegalStateException: Expected state [STARTED] was [STOPPED]
        at 
org.apache.curator.shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:823)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.checkState(CuratorFrameworkImpl.java:432)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.getChildren(CuratorFrameworkImpl.java:480)
        at 
org.apache.curator.framework.recipes.cache.PathChildrenCache.refresh(PathChildrenCache.java:524)
        at 
org.apache.curator.framework.recipes.cache.RefreshOperation.invoke(RefreshOperation.java:35)
        at 
org.apache.curator.framework.recipes.cache.PathChildrenCache$9.run(PathChildrenCache.java:808)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
ERROR [org.apache.curator.framework.recipes.cache.PathChildrenCache] 
java.lang.IllegalStateException: Expected state [STARTED] was [STOPPED]
        at 
org.apache.curator.shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:823)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.checkState(CuratorFrameworkImpl.java:432)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.getChildren(CuratorFrameworkImpl.java:480)
        at 
org.apache.curator.framework.recipes.cache.PathChildrenCache.refresh(PathChildrenCache.java:524)
        at 
org.apache.curator.framework.recipes.cache.RefreshOperation.invoke(RefreshOperation.java:35)
        at 
org.apache.curator.framework.recipes.cache.PathChildrenCache$9.run(PathChildrenCache.java:808)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
ERROR [org.apache.curator.framework.recipes.cache.PathChildrenCache] 
java.lang.IllegalStateException: Expected state [STARTED] was [STOPPED]
        at 
org.apache.curator.shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:823)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.checkState(CuratorFrameworkImpl.java:432)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.getChildren(CuratorFrameworkImpl.java:480)
        at 
org.apache.curator.framework.recipes.cache.PathChildrenCache.refresh(PathChildrenCache.java:524)
        at 
org.apache.curator.framework.recipes.cache.RefreshOperation.invoke(RefreshOperation.java:35)
        at 
org.apache.curator.framework.recipes.cache.PathChildrenCache$9.run(PathChildrenCache.java:808)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
ERROR [org.apache.curator.framework.recipes.cache.PathChildrenCache] 
java.lang.IllegalStateException: Expected state [STARTED] was [STOPPED]
        at 
org.apache.curator.shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:823)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.checkState(CuratorFrameworkImpl.java:432)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.getChildren(CuratorFrameworkImpl.java:480)
        at 
org.apache.curator.framework.recipes.cache.PathChildrenCache.refresh(PathChildrenCache.java:524)
        at 
org.apache.curator.framework.recipes.cache.RefreshOperation.invoke(RefreshOperation.java:35)
        at 
org.apache.curator.framework.recipes.cache.PathChildrenCache$9.run(PathChildrenCache.java:808)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
ERROR [org.apache.curator.framework.recipes.cache.PathChildrenCache] 
java.lang.IllegalStateException: Expected state [STARTED] was [STOPPED]
        at 
org.apache.curator.shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:823)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.checkState(CuratorFrameworkImpl.java:432)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.getChildren(CuratorFrameworkImpl.java:480)
        at 
org.apache.curator.framework.recipes.cache.PathChildrenCache.refresh(PathChildrenCache.java:524)
        at 
org.apache.curator.framework.recipes.cache.RefreshOperation.invoke(RefreshOperation.java:35)
        at 
org.apache.curator.framework.recipes.cache.PathChildrenCache$9.run(PathChildrenCache.java:808)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
ERROR [org.apache.curator.framework.recipes.cache.PathChildrenCache] 
java.lang.IllegalStateException: Client is not started
        at 
org.apache.curator.shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:507)
        at 
org.apache.curator.CuratorZookeeperClient.getZooKeeper(CuratorZookeeperClient.java:162)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.getZooKeeper(CuratorFrameworkImpl.java:620)
        at 
org.apache.curator.framework.imps.ExistsBuilderImpl$2.call(ExistsBuilderImpl.java:230)
        at 
org.apache.curator.framework.imps.ExistsBuilderImpl$2.call(ExistsBuilderImpl.java:224)
        at 
org.apache.curator.connection.StandardConnectionHandlingPolicy.callWithRetry(StandardConnectionHandlingPolicy.java:64)
        at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:100)
        at 
org.apache.curator.framework.imps.ExistsBuilderImpl.pathInForeground(ExistsBuilderImpl.java:221)
        at 
org.apache.curator.framework.imps.ExistsBuilderImpl.forPath(ExistsBuilderImpl.java:206)
        at 
org.apache.curator.framework.imps.ExistsBuilderImpl.forPath(ExistsBuilderImpl.java:35)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.createContainers(CuratorFrameworkImpl.java:265)
        at 
org.apache.curator.framework.EnsureContainers.internalEnsure(EnsureContainers.java:69)
        at 
org.apache.curator.framework.EnsureContainers.ensure(EnsureContainers.java:53)
        at 
org.apache.curator.framework.recipes.cache.PathChildrenCache.ensurePath(PathChildrenCache.java:596)
        at 
org.apache.curator.framework.recipes.cache.PathChildrenCache.refresh(PathChildrenCache.java:492)
        at 
org.apache.curator.framework.recipes.cache.RefreshOperation.invoke(RefreshOperation.java:35)
        at 
org.apache.curator.framework.recipes.cache.PathChildrenCache$9.run(PathChildrenCache.java:808)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
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
ERROR [org.apache.curator.framework.recipes.cache.PathChildrenCache] 
java.lang.IllegalStateException: Expected state [STARTED] was [STOPPED]
        at 
org.apache.curator.shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:823)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.checkState(CuratorFrameworkImpl.java:432)
        at 
org.apache.curator.framework.imps.CuratorFrameworkImpl.getChildren(CuratorFrameworkImpl.java:480)
        at 
org.apache.curator.framework.recipes.cache.PathChildrenCache.refresh(PathChildrenCache.java:524)
        at 
org.apache.curator.framework.recipes.cache.RefreshOperation.invoke(RefreshOperation.java:35)
        at 
org.apache.curator.framework.recipes.cache.PathChildrenCache$9.run(PathChildrenCache.java:808)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
[ERROR] Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 11.579 
s <<< FAILURE! - in 
org.apache.knox.gateway.topology.monitor.RemoteConfigurationMonitorTest
[ERROR] 
testZooKeeperConfigMonitorSASLCreateNodes(org.apache.knox.gateway.topology.monitor.RemoteConfigurationMonitorTest)
  Time elapsed: 6.34 s  <<< FAILURE!
java.lang.AssertionError
        at 
org.apache.knox.gateway.topology.monitor.RemoteConfigurationMonitorTest.testZooKeeperConfigMonitorSASLCreateNodes(RemoteConfigurationMonitorTest.java:511)
{code}

The ZK dependency has been upgraded recently which may cause this issue.

An idea: {{configureAndStartZKCluster()}} is invoked before all test cases; why 
not moving this call into {{setUpBeforeClass()}?



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

Reply via email to