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
    • Storage Engines, Storage Engines - Server Integration
    • ALL
    • Storage Execution 2025-09-01, Storage Execution 2025-09-15
    • 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:
            Unassigned
            Reporter:
            Yuhong Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: