Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-705

ServiceCache::getInstances do not return any instances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 5.6.0
    • None
    • General
    • None
    • linux, java 21

    Description

      we've run into an issue with service discovery after upgrading from 4.3.0 to 5.6.0.

      ServiceCache::getInstances do not return any instances of a service. restarting the back-end services do allow ServiceCache to detect the instance. have managed to simulate this scenario in the test cases.

       

      TestServiceCache::testInitialLoad was modified to register instance1 before the cache has been started. an assert immediately after cache.start detects the failure, ie:

      assertEquals(1, cache.getInstances().size());

       

      Attachments

        1. testInitialLoadUsingExecutor.patch
          4 kB
          Roelof Naude
        2. curator-x-discovery.patch
          5 kB
          Roelof Naude

        Issue Links

          Activity

            People

              Unassigned Unassigned
              naude-r Roelof Naude
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: