QE anchor cleanup should fail when it encounters write errors

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Security 2023-05-29
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, the cleanupESCAnchors function, which is used by cleanupStructuredEncryptionData command, only logs a warning when it runs into write errors while performing the anchor deletes. This is an issue because if the anchors are not being deleted due to these ignored errors, and the cleanup command then drops the "esc.deletes" collection, then these anchors will never be removed from the ESC because subsequent cleanup calls will only record anchor IDs starting from the new "bottom" position in the null anchor.

      Therefore, if a write error occurs during the anchor removal, it should stop the entire cleanup operation so that the "esc.deletes" collection won't be dropped.  Subsequent calls to cleanup can then resume deletions from the leftover "esc.deletes" collection.

       

            Assignee:
            Erwin Pe
            Reporter:
            Erwin Pe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: