[SERVER-60748] The `EachOnDeleteRequiresAboutToDelete` test case invariants in `aboutToDelete` and not in `onDelete` Created: 15/Oct/21  Updated: 29/Oct/23  Resolved: 19/Nov/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-61611 extend OpObserver::aboutToDelete() to... Closed
is related to SERVER-47531 OpObserver: Convert usage of getColle... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2021-11-29
Participants:

 Description   

According to this test run, the EachOnDeleteRequiresAboutToDelete death test seems to be crashing due to an invariant in aboutToDelete and on in onDelete.

Filing this ticket by suggestion from benety.goh so the Execution team can check that the right conditions are tested by this unit-test.



 Comments   
Comment by Githook User [ 19/Nov/21 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-60748 update OpObserverTest::EachOnDeleteRequiresAboutToDelete to reflect current behavior
Branch: master
https://github.com/mongodb/mongo/commit/05e9513854d76e545cffd9adaec739ddcbd537bf

Comment by Benety Goh [ 19/Nov/21 ]

We stopped requiring matching onDelete and aboutToDelete() calls in OpObserverImpl. We can update this test to reflect the current restriction in the DocumentKey constructor.

Comment by Benety Goh [ 19/Nov/21 ]

The test is currently failing on an invariant in the DocumentKey constructor added in SERVER-47531.

We can provide a valid BSON document to onDelete() to get past this invariant.

Generated at Thu Feb 08 05:50:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.