Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-3419

ClusterNodeInfo.createInstance fails to clean up random entries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.19, 1.2.4, 1.3.5
    • 1.0.22, 1.2.7, 1.3.7, 1.4
    • core

    Description

                  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;
                  }
      

      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.

      Attachments

        Activity

          People

            reschke Julian Reschke
            reschke Julian Reschke
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: