[SERVER-84336] Timeseries inserts can leave dangling BSONObj in WriteBatches in certain cases Created: 20/Dec/23  Updated: 07/Feb/24  Resolved: 02/Feb/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 8.0.0-rc0, 7.3.0-rc2

Type: Bug Priority: Major - P3
Reporter: Henrik Edin Assignee: Henrik Edin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Duplicate
is duplicated by SERVER-83986 Investigate timeseries segfault in Mi... Closed
Problem/Incident
causes SERVER-83986 Investigate timeseries segfault in Mi... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.3
Sprint: Execution Team 2023-12-25, Execution Team 2024-01-08, Execution Team 2024-01-22, Execution Team 2024-02-05
Participants:
Linked BF Score: 105

 Comments   
Comment by Githook User [ 07/Feb/24 ]

Author:

{'name': 'henrikedin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-84336 Fix synchronization of timeseries unordered insertMany when exception is encountered and the thread has multiple write batches (#18099)

SERVER-84336 Fix exception handling of time-series unordered insert many
with multiple write batches

Threads now attempt to abort any write batches and wait until no other
thread is trying to commit the data before proceeding with tearing down
the command when an exception is encountered.

(cherry picked from commit bc1b48cc91e7ea05c96f7fb8f4ae2a905baeddab)

GitOrigin-RevId: 01f48b91db080980f29989675e283c5aabfef6bd
Branch: v7.0
https://github.com/mongodb/mongo/commit/ef71903e9ef7e79e41480eaad0f6f18567894d3b

Comment by Githook User [ 05/Feb/24 ]

Author:

{'name': 'henrikedin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-84336 Fix synchronization of timeseries unordered insertMany when exception is encountered and the thread has multiple write batches (#18099)

SERVER-84336 Fix exception handling of time-series unordered insert many
with multiple write batches

Threads now attempt to abort any write batches and wait until no other
thread is trying to commit the data before proceeding with tearing down
the command when an exception is encountered.

(cherry picked from commit bc1b48cc91e7ea05c96f7fb8f4ae2a905baeddab)

GitOrigin-RevId: 3d28db081d34daadfa6a8e47ac3f904a7ba4b232
Branch: v7.3
https://github.com/mongodb/mongo/commit/6582a6ada406cead6093921046ea3e24304e16de

Comment by Githook User [ 26/Jan/24 ]

Author:

{'name': 'henrikedin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-84336 Fix synchronization of timeseries unordered insertMany when exception is encountered and the thread has multiple write batches (#18099)

SERVER-84336 Fix exception handling of time-series unordered insert many
with multiple write batches

Threads now attempt to abort any write batches and wait until no other
thread is trying to commit the data before proceeding with tearing down
the command when an exception is encountered.

GitOrigin-RevId: bc1b48cc91e7ea05c96f7fb8f4ae2a905baeddab
Branch: master
https://github.com/mongodb/mongo/commit/ac5451c6f011439e08165c7de5dd6e4e131a0d45

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