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

LastRev check/fix in DocumentNodeStore MBean

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.16.0, 1.10.5, 1.8.17
    • documentmk
    • None

    Description

      There is existing tooling to check _lastRev consistency of documents in the DocumentStore. Some of the tooling is limited to MongoDB because it is implemented as utility functions for the MongoDB shell (oak-mongo.js). The oak-run recovery command was initially only available on MongoDB as well, but recently RDB support was added (OAK-8004). The recovery command however has some drawbacks. It scans the entire nodes collection, which can be a rather expensive operation and when started in read-write mode.

      This improvement is about adding _lastRev check and fix functionality to the DocumentNodeStore MBean. The scope of the check and fix would be limited to some path(s) in order to keep the runtime of the operation low.

      Attachments

        1. OAK-8449_1.patch
          7 kB
          Vinod Holani
        2. OAK-8449_2.patch
          9 kB
          Vinod Holani

        Activity

          People

            mreutegg Marcel Reutegger
            vholani Vinod Holani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: