[SERVER-81858] TTL monitor should not batch deletes if preimages are enabled Created: 04/Oct/23  Updated: 09/Nov/23  Resolved: 24/Oct/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.2.0-rc0, 7.0.4

Type: Bug Priority: Major - P3
Reporter: Yujin Kang Park Assignee: Haley Connelly
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File help-50259.js    
Issue Links:
Backports
Related
Assigned Teams:
Storage Execution EMEA
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.1, v7.0
Sprint: Execution EMEA Team 2023-10-30
Participants:
Case:

 Description   

By design, batched deletes are not supported if preimages are enabled on the collection. The TTL monitor currently does not check for this, and applies batched deletes even if preimages are enabled, causing change streams to return "fullDocumentBeforeChange: null".



 Comments   
Comment by Githook User [ 09/Nov/23 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-81858 Don't batch TTL deletes on collection's with pre-images enabled

(cherry picked from commit 75b407f309f43619fc6fb87ede494f686a8d158a)
Branch: v7.0
https://github.com/mongodb/mongo/commit/d96085dfb1241c959caab4f69bf4b3e7acf805bf

Comment by Githook User [ 24/Oct/23 ]

Author:

{'name': 'Haley Connelly', 'email': 'haley.connelly@mongodb.com', 'username': 'haleyConnelly'}

Message: SERVER-81858 Don't batch TTL deletes on collection's with pre-images enabled
Branch: master
https://github.com/mongodb/mongo/commit/75b407f309f43619fc6fb87ede494f686a8d158a

Generated at Thu Feb 08 06:47:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.