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

Make async index more resilient on documentmk

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.5.9, 1.6.0, 1.4.16
    • query
    • None

    Description

      The async index update suffers in an eventual consistency store from stale reads of the root node. It may happen that in a cluster an indexing job running concurrently on more nodes, would not see the lease updates coming from another cluster node, so it would end up wiping away checkpoints and/or triggering a full reindex.
      There is not much we can do at this level, but make the code a bit more resilient for this specific case (reindex due to missing reference checkpoint) by issuing a write+read operation to force a root revision update which would hopefully prevent a full reindex.
      For background, the preferred solution is to have an upper layer choose the node where the async jobs run (aka. use sling discovery bundles).

      Attachments

        1. OAK-4668-v3.patch
          37 kB
          Chetan Mehrotra
        2. OAK-4668-v2.patch
          26 kB
          Alex Deparvu
        3. OAK-4668.patch
          12 kB
          Alex Deparvu

        Issue Links

          Activity

            People

              stillalex Alex Deparvu
              stillalex Alex Deparvu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: