Project: springxd
Issue XD-1540: stack trace on xd-admin restart when redploying streams
(the trace below occurs in the admin console but the Admin continues to handle subsequent deployment requests fine it seems) To reproduce: * start xd-admin and xd-container (just 1 of each) * deploy 'time | log' * kill both xd-admin and xd-container * start xd-container by itself * wait 10 seconds or so, then start xd-admin result: {code} 21:35:01,575 ERROR ContainersPathChildrenCache-0 cache.PathChildrenCache:550 - org.apache.zookeeper.KeeperException$NodeExistsException: KeeperErrorCode = NodeExists for /xd/deployments/modules/f89e5fdc-7dc1-49fb-93cc-d536ab853f12/s.source.time-0 org.apache.zookeeper.KeeperException.create(KeeperException.java:119) org.apache.zookeeper.KeeperException.create(KeeperException.java:51) org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783) org.apache.curator.framework.imps.CreateBuilderImpl$11.call(CreateBuilderImpl.java:676) org.apache.curator.framework.imps.CreateBuilderImpl$11.call(CreateBuilderImpl.java:660) org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:107) org.apache.curator.framework.imps.CreateBuilderImpl.pathInForeground(CreateBuilderImpl.java:656) org.apache.curator.framework.imps.CreateBuilderImpl.protectedPathInForeground(CreateBuilderImpl.java:441) org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:431) org.apache.curator.framework.imps.CreateBuilderImpl.forPath(CreateBuilderImpl.java:411) org.apache.curator.framework.imps.CreateBuilderImpl$4.forPath(CreateBuilderImpl.java:319) org.apache.curator.framework.imps.CreateBuilderImpl$4.forPath(CreateBuilderImpl.java:255) org.springframework.xd.dirt.server.ContainerListener.onChildAdded(ContainerListener.java:272) org.springframework.xd.dirt.server.ContainerListener.childEvent(ContainerListener.java:152) org.apache.curator.framework.recipes.cache.PathChildrenCache$5.apply(PathChildrenCache.java:494) org.apache.curator.framework.recipes.cache.PathChildrenCache$5.apply(PathChildrenCache.java:488) org.apache.curator.framework.listen.ListenerContainer$1.run(ListenerContainer.java:92) com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:293) org.apache.curator.framework.listen.ListenerContainer.forEach(ListenerContainer.java:83) org.apache.curator.framework.recipes.cache.PathChildrenCache.callListeners(PathChildrenCache.java:485) org.apache.curator.framework.recipes.cache.EventOperation.invoke(EventOperation.java:35) org.apache.curator.framework.recipes.cache.PathChildrenCache$11.run(PathChildrenCache.java:755) java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) java.util.concurrent.FutureTask.run(FutureTask.java:262) java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) java.util.concurrent.FutureTask.run(FutureTask.java:262) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) java.lang.Thread.run(Thread.java:744) {code}
Story points: 2