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

Revision GC may remove previous document without removing reference

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.12.0
    • Fix Version/s: 1.14.0
    • Component/s: documentmk
    • Labels:
      None

      Description

      Depending on timing it may happen that the Revision GC removes a previous document without updating the main document. This can only happen in a cluster when modifications to a document happen on one cluster node and the Revision GC runs on the other cluster node. Updating the main document on Revision GC fails when the document was split after a background update that contained the latest change on the document and the document is not updated anymore. On the cluster node where the Revision GC runs, the document may then stay in the cache in a state that doesn't reflect the split. When the Revision GC runs, the main document from the cache will not show the reference to the previous document.

      The Revision GC will print a log message that says like:

      Split document 4:p/content/foo/r169f074b41f-0-1/0 for path p/content/foo/r169f074b41f-0-1/0 not referenced anymore. Main document is 2:/content/foo
      

        Attachments

          Activity

            People

            • Assignee:
              mreutegg Marcel Reutegger
              Reporter:
              mreutegg Marcel Reutegger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: