[ 
https://issues.apache.org/jira/browse/CURATOR-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jordan Zimmerman updated CURATOR-94:
------------------------------------
    Fix Version/s: 2.7.1

> PERMANENT registration should not be added to the services map.
> ---------------------------------------------------------------
>
>                 Key: CURATOR-94
>                 URL: https://issues.apache.org/jira/browse/CURATOR-94
>             Project: Apache Curator
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 2.4.0
>            Reporter: David Trott
>
> In ServiceDiscoveryImpl the registerService(...) method should be:
>     {
>         if (service.getServiceType() == ServiceType.STATIC)
>         {
>             services.put(service.getId(), service);
>         }
>         internalRegisterService(service);
>     }
> This prevents two side effects:
> + PERMANENT registration are not deleted when the ServiceDiscoveryImpl class 
> is closed.
> + PERMANENT registration are not re-registered (potentially with old data) 
> after a connection loss event.
> The first case is a problem, since shutting down the registration app cleanly 
> deletes all PERMANENT registrations.
> Additionally since PERMANENT registrations do not use ephemeral nodes the 
> re-registration functionality is not needed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to