Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-77238

QE anchor cleanup should fail when it encounters write errors

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Security 2023-05-29

    Description

      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.

       

      Attachments

        Activity

          People

            erwin.pe@mongodb.com Erwin Pe
            erwin.pe@mongodb.com Erwin Pe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: