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

Consistency check incorrectly fails for broken partial paths

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.0
    • Fix Version/s: 1.7.0, 1.8.0
    • Component/s: run, segment-tar
    • Labels:

      Description

      To better explain the bug I'll describe the content of the revisions:

      1. Valid Revision
        Adds child nodes a, b, c, d, e, f with various properties (blobs included)
      2. Invalid Revision
        Adds child node z with some blob properties and then corrupts the NODE record holding z.
        Now when the consistency check is run, it correctly detects that the second revision is broken, marks the path /z as corrupt and then continues checking the first valid revision. Because of a check introduced for OAK-5556 [1], which tries to validate the user provided absolute paths before checking them, the checker tries to check /z in the first revision, where of course it can't find it. Therefore the check incorrectly fails for this revision, although it shouldn't have to.

      /cc Michael Dürig, Francesco Mari

        Attachments

        1. OAK-5753.patch
          18 kB
          Andrei Dulceanu
        2. OAK-5753-02.patch
          6 kB
          Andrei Dulceanu

          Activity

            People

            • Assignee:
              adulceanu Andrei Dulceanu
              Reporter:
              adulceanu Andrei Dulceanu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: