[SERVER-41016] Calculate deltas for updates to large documents Created: 06/May/19  Updated: 29/Oct/23  Resolved: 23/May/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6.14, 4.1.12, 4.0.11

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

Issue Links:
Backports
Depends
depends on WT-4776 Modify operations should be equivalen... Closed
Problem/Incident
Related
related to SERVER-41913 Avoid in-place modify operations for ... Closed
related to SERVER-39774 increase number of updates in rollbac... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.0, v3.6
Sprint: Storage Engines 2019-05-06, Storage Engines 2019-05-20, Storage Engines 2019-06-03
Participants:
Linked BF Score: 0
Story Points: 0

 Description   

Use wiredtiger_calc_modify to calculate deltas for size-changing updates to large documents.



 Comments   
Comment by Githook User [ 31/Jul/19 ]

Author:

{'name': 'Michael Cahill', 'email': 'michael.cahill@mongodb.com', 'username': 'michaelcahill'}

Message: SERVER-41016 Calculate deltas for updates to large documents.

(cherry picked from commit 0d16c757b7badfcadac2a6794525f3c41a621a07)
(cherry picked from commit 98285cd9c36ac995a0207012c6742c2cefc03dd4)
Branch: v3.6
https://github.com/mongodb/mongo/commit/e01b2ea5d1ecb076159a2e260524c2a2e381d36d

Comment by Githook User [ 12/Jul/19 ]

Author:

{'name': 'Michael Cahill', 'username': 'michaelcahill', 'email': 'michael.cahill@mongodb.com'}

Message: SERVER-41016 Calculate deltas for updates to large documents.

(cherry picked from commit 0d16c757b7badfcadac2a6794525f3c41a621a07)
Branch: v4.0
https://github.com/mongodb/mongo/commit/98285cd9c36ac995a0207012c6742c2cefc03dd4

Comment by Githook User [ 23/May/19 ]

Author:

{'name': 'Michael Cahill', 'email': 'michael.cahill@mongodb.com', 'username': 'michaelcahill'}

Message: SERVER-41016 Calculate deltas for updates to large documents.
Branch: master
https://github.com/mongodb/mongo/commit/0d16c757b7badfcadac2a6794525f3c41a621a07

Comment by Michael Cahill (Inactive) [ 06/May/19 ]

This turned up a real bug: WiredTiger's existing semantics for modifications assumes that results are committed in timestamp order. In _mdb_catalog, where updates are performed out of timestamp order, a subset of modifications would be applied, leading to invalid BSON being returned. I'll change the WT semantic to give the expected results.

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