Uploaded image for project: 'Spring XD'
  1. Spring XD
  2. XD-2005

IllegalStateException when shutting down container

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.0 GA
    • Component/s: Runtime
    • Labels:
      None
    • Story Points:
      3
    • Rank (Obsolete):
      45105
    • Sprint:
      Sprint 32

      Description

      13:23:57,643  INFO main-EventThread server.ContainerRegistrar - Undeploying module [[email protected] moduleName = 'log', moduleLabel = 'log', group = 'paymenttap', sourceChannelName = 'tap:job:payment', sinkChannelName = [null], sinkChannelName = [null], index = 0, type = sink, parameters = map[[empty]], children = list[[empty]]]
      13:23:57,643 ERROR main-EventThread imps.CuratorFrameworkImpl - Watcher exception
      java.lang.IllegalStateException: instance must be started before calling this method
      at com.google.common.base.Preconditions.checkState(Preconditions.java:176)
      at org.apache.curator.framework.imps.CuratorFrameworkImpl.delete(CuratorFrameworkImpl.java:344)
      at org.springframework.xd.dirt.server.ContainerRegistrar.unregisterTap(ContainerRegistrar.java:292)
      at org.springframework.xd.dirt.server.ContainerRegistrar.undeployModule(ContainerRegistrar.java:257)
      at org.springframework.xd.dirt.server.ContainerRegistrar$StreamModuleWatcher.process(ContainerRegistrar.java:711)
      at org.apache.curator.framework.imps.NamespaceWatcher.process(NamespaceWatcher.java:67)
      at org.apache.zookeeper.ClientCnxn$EventThread.processEvent(ClientCnxn.java:522)
      at org.apache.zookeeper.ClientCnxn$EventThread.run(ClientCnxn.java:498)
      

      Sequence of events:

      • Stream module ZK path is removed
      • Event is raised
      • ZK connection is closed
      • Event handler causes module undeployment which includes unregistration of tap
      • Since connection is closed, exception is thrown

        Attachments

          Activity

            People

            Assignee:
            pperalta Patrick Peralta
            Reporter:
            pperalta Patrick Peralta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: