[SERVER-77063] Failing bucket compression causes errors returned incorrectly for time-series inserts Created: 12/May/23  Updated: 29/Oct/23  Resolved: 22/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 6.0.7, 7.0.0-rc2

Type: Bug Priority: Major - P3
Reporter: Yuhong Zhang 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
Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0, v6.3, v6.0
Sprint: Execution Team 2023-05-29
Participants:
Linked BF Score: 108

 Description   

When the write of the insert succeeds and the write of the compression fails for a time-series measurement, the insert will return the error which implies the insert fails, even though the measurement was actually inserted. This is problematic and can cause the inserts to be duplicated when a retry happens on an error.

This can happen for both ordered: true and ordered: false inserts.



 Comments   
Comment by Githook User [ 31/May/23 ]

Author:

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

Message: SERVER-77063 Make bucket compression operation transparent to users

Suppress any error encountered during bucket compression, this fixes bugs where errors were reported due to shard version changes that got interpreted by mongos as user operations need to be retried, causing inserts to happen multiple times.

(cherry picked from commit 770b5552578d1cebba2df38c48274197f76a3c34)
Branch: v6.0
https://github.com/mongodb/mongo/commit/fe0dad6df400368e40b8d4c395414b5fd1a80e10

Comment by Githook User [ 22/May/23 ]

Author:

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

Message: SERVER-77063 Make bucket compression operation transparent to users

Suppress any error encountered during bucket compression, this fixes bugs where errors were reported due to shard version changes that got interpreted by mongos as user operations need to be retried, causing inserts to happen multiple times.

(cherry picked from commit 770b5552578d1cebba2df38c48274197f76a3c34)
Branch: v7.0
https://github.com/mongodb/mongo/commit/5ef2a3b859db22bfdf30dae0bfe129ddada0a987

Comment by Githook User [ 18/May/23 ]

Author:

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

Message: SERVER-77063 Make bucket compression operation transparent to users

Suppress any error encountered during bucket compression, this fixes bugs where errors were reported due to shard version changes that got interpreted by mongos as user operations need to be retried, causing inserts to happen multiple times.
Branch: master
https://github.com/mongodb/mongo/commit/770b5552578d1cebba2df38c48274197f76a3c34

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