You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Julian Reschke (JIRA)" <ji...@apache.org> on 2015/09/18 10:19:05 UTC

[jira] [Updated] (OAK-3419) ClusterNodeInfo.createInstance fails to clean up random entries

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

Julian Reschke updated OAK-3419:
--------------------------------
    Labels: resilience  (was: )

> ClusterNodeInfo.createInstance fails to clean up random entries
> ---------------------------------------------------------------
>
>                 Key: OAK-3419
>                 URL: https://issues.apache.org/jira/browse/OAK-3419
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>            Reporter: Julian Reschke
>              Labels: resilience
>
> {code}
>             String mId = "" + doc.get(MACHINE_ID_KEY);
>             String iId = "" + doc.get(INSTANCE_ID_KEY);
>             if (machineId.startsWith(RANDOM_PREFIX)) {
>                 // remove expired entries with random keys
>                 store.remove(Collection.CLUSTER_NODES, key);
>                 continue;
>             }
> {code}
> The intent seems to be to cleanup entries in the cluster node table that start with RANDOM_PREFIX. However, {{machineId}} is checked instead of {{mId}}. When {{createInstance}} is called with a random id, the whole table might get wiped out. 



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