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

Service Discovery InstanceCleanup cleans up DYNAMIC registration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.3.0
    • 2.4.0
    • Framework
    • None

    Description

      Line #110 of InstanceCleanup reads:

      if ( instance.getServiceType() != ServiceType.PERMANENT )

      It should be:

      if ( instance.getServiceType() == ServiceType.STATIC )

      Otherwise the cleanup code processes dynamic registrations such as it's own registration.

      Since dynamic registrations are created with EPHEMERAL nodes (ServiceDiscoveryImpl#175) there is no need to cleanup dynamic registrations anyway.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified