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

Add Logging to ZooKeeperContainerRepository

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.2 GA
    • Component/s: None
    • Labels:
      None

      Description

      Occasional CI test build failures:

      Caused by: java.lang.IllegalStateException: Container cache not initialized (likely as a result of a ZooKeeper connection error)
      at org.springframework.util.Assert.state(Assert.java:385)
      at org.springframework.xd.dirt.container.store.ZooKeeperContainerRepository.ensureCache(ZooKeeperContainerRepository.java:184)
      at org.springframework.xd.dirt.container.store.ZooKeeperContainerRepository.findOne(ZooKeeperContainerRepository.java:263)

      e.g. https://build.spring.io/browse/XD-JDK8-JOB1-1514

      Add logging to ensureCache() (e.g. in childEvent() ) and closeCache() to log that the cache was closed; it appears that's the only way the "cache not initialized" message can be emitted.

        Attachments

          Activity

            People

            Assignee:
            pperalta Patrick Peralta
            Reporter:
            grussell Gary Russell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: