[SERVER-31930] EphemeralForTest does not unindex records in capped collections on rollback. Created: 13/Nov/17  Updated: 30/Oct/23  Resolved: 13/Nov/17

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 3.4.11, 3.6.0-rc4

Type: Bug Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Daniel Gottlieb (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.4
Steps To Reproduce:

resmoke --suites replica_sets --storageEngine ephemeralForTest jstests/replsets/rollback_crud_op_sequences.js

Sprint: Storage 2017-11-13
Participants:
Linked BF Score: 0

 Description   

Part of the contract of RecordStore::cappedTruncateAfter is to call aboutToDeleteCapped on each document being removed. This callback results in the catalog/Collection object calling the appropriate unindex methods.

However EphemeralForTestRecordStore only removes the documents.



 Comments   
Comment by Githook User [ 20/Dec/17 ]

Author:

{'name': 'Daniel Gottlieb', 'email': 'daniel.gottlieb@mongodb.com', 'username': 'dgottlieb'}

Message: SERVER-31930: Have ephemeralForTest capped collections unindex deleted documents in rollback.

(cherry picked from commit 6ad1c6cea2e516ac8800265ed7358edaea9382d8)
Branch: v3.4
https://github.com/mongodb/mongo/commit/ec4d0f362962e54465061cbfa2b0ecfabce49ae3

Comment by Githook User [ 13/Nov/17 ]

Author:

{'name': 'Daniel Gottlieb', 'username': 'dgottlieb', 'email': 'daniel.gottlieb@mongodb.com'}

Message: SERVER-31930: Have ephemeralForTest capped collections unindex deleted documents in rollback.
Branch: master
https://github.com/mongodb/mongo/commit/6ad1c6cea2e516ac8800265ed7358edaea9382d8

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