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

Script to check for inconsistent version nodes and generate a report

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.42.0
    • documentmk
    • None

    Description

      We have detected some external tools can introduce some changes in the version history nodes, leaving it inconsistent. The main problems we detected were:

      • Some version nodes are left empty, instead of removing the node completely. Leaving empty nodes that will trigger ConstraintViolations when they are traversed.
      • The primaryType of the node is changed incorrectly from nt:versionHistory to nt:version.

      I have created a script to traverse the versionHistory and detect if the NodeStore is affected by this issues.

      Attachments

        Activity

          People

            corderob José Andrés Cordero Benítez
            corderob José Andrés Cordero Benítez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: