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

CopyOnWrite directory should clear working set of files being written upon start

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.5.13, 1.6.0
    • lucene
    • None

    Description

      CopyOnWriteDirectory makes use of working set (introduced with OAK-3110) to notify the CopyOnReadDirectory that those files are in use. This would ensure that CoR dir does not consider such files as garbage.

      This set gets cleared when CoW dir closes cleanly. However in case it does not close cleanly such a state would not be cleared. To handle such cases we should clear the working set upon construction of CoW dir as there can be only one writer by design

      Attachments

        Activity

          People

            chetanm Chetan Mehrotra
            chetanm Chetan Mehrotra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: