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

LastRevRecoveryAgent should avoid recovering documents from its own cluster id if the instance is running

    XMLWordPrintableJSON

Details

    Description

      In certain scenarios (mostly slow background write leading to lease timeout), last rev recovery agent can kick in and start to recover documents from its own cluster id. The situation is implicitly avoided in 1.4+ (OAK-3397) as the instance would kill itself on lease failure (there are other safeguards too to avoid the situation). But, on older branches, especially 1.0 which has no safeguards, this can lead to loss of last revs.

      All that said, it's anyway reasonable that LRRA shouldn't try to recover its own instance while it's running (startup still needs to be handled by LRRA though).

      Attachments

        1. OAK-5337.patch
          4 kB
          Vikas Saurabh

        Issue Links

          Activity

            People

              catholicon Vikas Saurabh
              catholicon Vikas Saurabh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: