Return an error indicating when requested record doesn't exist in WiredTigerRecordStore::wtDeleteRecord

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • ALL
    • Storage Execution 2025-09-01
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When trying to delete a record that doesn't exist, WiredTigerRecordStore::wtDeleteRecord currently logs an error, prints the stack trace, and moves on (in testing, it crashes the server). This can trigger false positives in replication when the secondary tries to apply the delete oplog entry and couldn't find the document. 

      It will be better to return an error to indicate to the caller that a bad request was made and potentially tassert there.

              Assignee:
              Yuhong Zhang
              Reporter:
              Yuhong Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: