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

AsyncIndexUpdate can leave orphaned checkpoint in case of abrupt shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.6, 1.1.0
    • core
    • None

    Description

      Currently AsyncIndexUpdate creates a checkpoint with a lifetime of 3
      years. Post index complete the checkpoint is moved to point to revision upto which indexing is done and previous checkpoint is released.

      Now if a system is killed when a index update is in progress particularly in run method where a new checkpoint gets created (Line 229) then that checkpoint would not be released and also would not be recorded in index metadata. Such a checkpoint would prevent GC for a long time.

      http://markmail.org/thread/e4jqkk2malfgjxx6

      Attachments

        1. OAK-2088.patch
          9 kB
          Alex Deparvu
        2. OAK-2088-v2.patch
          10 kB
          Alex Deparvu

        Activity

          People

            stillalex Alex Deparvu
            chetanm Chetan Mehrotra
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: