[
https://issues.apache.org/jira/browse/CONNECTORS-1036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14137697#comment-14137697
]
Karl Wright commented on CONNECTORS-1036:
-----------------------------------------
Ok, after fixing that, now when webapps is shut down, I get these:
{code}
Exception in thread "Shutdown thread" java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:926)
at java.util.HashMap$KeyIterator.next(HashMap.java:960)
at
org.apache.manifoldcf.core.lockmanager.ZooKeeperEphemeralNodePool.deleteAll(ZooKeeperEphemeralNodePool.java:65)
at
org.apache.manifoldcf.core.lockmanager.ZooKeeperLockManager.shutdownPool(ZooKeeperLockManager.java:925)
at
org.apache.manifoldcf.core.lockmanager.ZooKeeperLockManager$ZooKeeperShutdown.doCleanup(ZooKeeperLockManager.java:964)
at
org.apache.manifoldcf.core.system.ManifoldCF.cleanUpEnvironment(ManifoldCF.java:1295)
at
org.apache.manifoldcf.core.system.ManifoldCF$ShutdownThread.run(ManifoldCF.java:1483)
{code}
and...
{code}
java.lang.IllegalStateException: Can't clean up a node that hasn't been created
for '/org.apache.manifoldcf.serviceactive-_OUTPUTCONNECTORPOOL_null-_ANON_4'
at
org.apache.manifoldcf.core.lockmanager.ZooKeeperEphemeralNodeObject.deleteNode(ZooKeeperEphemeralNodeObject.java:84)
at
org.apache.manifoldcf.core.lockmanager.ZooKeeperEphemeralNodePool.deleteNode(ZooKeeperEphemeralNodePool.java:55)
at
org.apache.manifoldcf.core.lockmanager.ZooKeeperLockManager.endServiceActivity(ZooKeeperLockManager.java:487)
at
org.apache.manifoldcf.core.connectorpool.ConnectorPool$Pool.releaseAll(ConnectorPool.java:735)
at
org.apache.manifoldcf.core.connectorpool.ConnectorPool.closeAllConnectors(ConnectorPool.java:381)
at
org.apache.manifoldcf.agents.outputconnectorpool.OutputConnectorPool.closeAllConnectors(OutputConnectorPool.java:141)
at
org.apache.manifoldcf.agents.system.ManifoldCF.localCleanup(ManifoldCF.java:80)
at
org.apache.manifoldcf.agents.system.ManifoldCF.cleanUpEnvironment(ManifoldCF.java:55)
at
org.apache.manifoldcf.crawler.system.ManifoldCF.cleanUpEnvironment(ManifoldCF.java:87)
at
org.apache.manifoldcf.crawlerui.ServletListener.contextDestroyed(ServletListener.java:64)
at
org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:682)
at
org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:144)
at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:478)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:84)
at
org.eclipse.jetty.server.handler.HandlerCollection.doStop(HandlerCollection.java:245)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:84)
at
org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:101)
at org.eclipse.jetty.server.Server.doStop(Server.java:322)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:84)
at
org.eclipse.jetty.util.thread.ShutdownThread.run(ShutdownThread.java:124)
{code}
> Agents shutdown can cause Zookeeper error
> -----------------------------------------
>
> Key: CONNECTORS-1036
> URL: https://issues.apache.org/jira/browse/CONNECTORS-1036
> Project: ManifoldCF
> Issue Type: Bug
> Components: Framework core
> Affects Versions: Manifold 1.7.1, ManifoldCF 2.0
> Reporter: Karl Wright
> Assignee: Karl Wright
> Fix For: Manifold 1.7.1, ManifoldCF 2.0
>
>
> Here's the exception:
> {code}
> WARN 2014-09-17 14:06:52,228 (Shutdown thread) - Exception tossed on
> repository connector pool cleanup: KeeperErrorCode = NoNode for
> /org.apache.manifoldcf.serviceactive-_REPOSITORYCONNECTORPOOL_Web-_ANON_5
> org.apache.manifoldcf.core.interfaces.ManifoldCFException: KeeperErrorCode =
> NoNode for
> /org.apache.manifoldcf.serviceactive-_REPOSITORYCONNECTORPOOL_Web-_ANON_5
> at
> org.apache.manifoldcf.core.lockmanager.ZooKeeperConnection.handleKeeperException(ZooKeeperConnection.java:941)
> at
> org.apache.manifoldcf.core.lockmanager.ZooKeeperConnection.deleteNode(ZooKeeperConnection.java:155)
> at
> org.apache.manifoldcf.core.lockmanager.ZooKeeperLockManager.endServiceActivity(ZooKeeperLockManager.java:478)
> at
> org.apache.manifoldcf.core.connectorpool.ConnectorPool$Pool.releaseAll(ConnectorPool.java:735)
> at
> org.apache.manifoldcf.core.connectorpool.ConnectorPool.closeAllConnectors(ConnectorPool.java:381)
> at
> org.apache.manifoldcf.crawler.repositoryconnectorpool.RepositoryConnectorPool.closeAllConnectors(RepositoryConnectorPool.java:144)
> at
> org.apache.manifoldcf.crawler.system.ManifoldCF.localCleanup(ManifoldCF.java:110)
> at
> org.apache.manifoldcf.crawler.system.CrawlerAgent.cleanUp(CrawlerAgent.java:105)
> at
> org.apache.manifoldcf.agents.system.AgentsDaemon.stopAgents(AgentsDaemon.java:171)
> at
> org.apache.manifoldcf.agents.system.AgentsDaemon$AgentsShutdownHook.doCleanup(AgentsDaemon.java:386)
> at
> org.apache.manifoldcf.core.system.ManifoldCF.cleanUpEnvironment(ManifoldCF.java:1295)
> at
> org.apache.manifoldcf.core.system.ManifoldCF$ShutdownThread.run(ManifoldCF.java:1483)
> Caused by: org.apache.zookeeper.KeeperException$NoNodeException:
> KeeperErrorCode = NoNode for
> /org.apache.manifoldcf.serviceactive-_REPOSITORYCONNECTORPOOL_Web-_ANON_5
> at
> org.apache.zookeeper.KeeperException.create(KeeperException.java:111)
> at
> org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
> at org.apache.zookeeper.ZooKeeper.delete(ZooKeeper.java:873)
> at
> org.apache.manifoldcf.core.lockmanager.ZooKeeperConnection.deleteNode(ZooKeeperConnection.java:150)
> ... 10 more
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)