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

discovery: registration of wrong/old service instance on RECONNECT

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.7.1
    • Recipes
    • None

    Description

      PR without a Jira: https://github.com/apache/curator/pull/43

      ServiceDiscoveryImpl.registerService() remembers service registrations in a map. However updateService() does not update the map.
      This causes a wrong registration in the case of a RECONNECT - e.g. reRegisterServices() called by the ConnectionStateListener registers the old ServiceInstance instead of the updated one.

      Attachments

        Activity

          People

            randgalt Jordan Zimmerman
            randgalt Jordan Zimmerman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: