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 16:07:04 UTC
[jira] [Assigned] (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 reassigned OAK-3419:
-----------------------------------
Assignee: Julian Reschke
> 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
> Affects Versions: 1.3.5
> Reporter: Julian Reschke
> Assignee: 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)