[SERVER-56374] [RRFaM] Have update path write to config.image_collection Created: 27/Apr/21  Updated: 29/Oct/23  Resolved: 10/May/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.0.25, 4.2.15, 4.4.7, 5.0.0-rc0

Type: Task 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
Duplicate
is duplicated by SERVER-56584 [RRFaM] Create IDL for `config.image_... Closed
Related
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4, v4.2, v4.0
Sprint: Repl 2021-05-17
Participants:

 Description   

When the RRFaM behavior is enabled:

  • A primary executing the update can add an update to the SessionTxnRecord within the same WUOW.
  • A secondary applying the update can also add an update to the SessionTxnRecord within the same WUOW.
    • Right now the UpdateResult does not return the pre/post image. This ticket should expose that API.
    • However the update predicate must include the clause: `{txnNum: {$lt: <updated txnNum>`}}.
  • Remove noop oplog entry writes for FaM updates
  • Take care to leave the upsert path alone (pre/post images are already trivially replicated)
  • Collections configured to always store preImages must continue to write noop pre-image oplog entries.
    • A findAndModify against these collections should avoid also saving the preImage into a config.transactions document.


 Comments   
Comment by Githook User [ 07/Jun/21 ]

Author:

{'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}

Message: SERVER-56374: always create the table for retryable find and modify on stepup
Branch: v4.2
https://github.com/mongodb/mongo/commit/12da0ab3a2804970108916c2a5e67bc350daa207

Comment by Githook User [ 04/Jun/21 ]

Author:

{'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}

Message: SERVER-56374: BF-21400 revert: always create the table for retryable find and modify on stepup
Branch: v4.2
https://github.com/mongodb/mongo/commit/3399d5c225a1e5f3fdf0a137057581a5178e315a

Comment by Githook User [ 03/Jun/21 ]

Author:

{'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}

Message: SERVER-56374: always create the table for retryable find and modify on stepup
Branch: v4.2
https://github.com/mongodb/mongo/commit/f53c59e2a9e597fbcdf0632559a81963994f9734

Comment by Githook User [ 24/May/21 ]

Author:

{'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}

Message: SERVER-56374: BACKPORT-8902 create config.image_collection on StepUp
Branch: v4.2
https://github.com/mongodb/mongo/commit/5c6ba3aeb114334ab037dedfa39ee6e0aa540d4c

Comment by Githook User [ 21/May/21 ]

Author:

{'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}

Message: SERVER-56374: BACKPORT-8902 Add ability to write retryable findAndModify updates to config.image_collection
Branch: v4.2
https://github.com/mongodb/mongo/commit/7e2afe22b658e2724f0a35714c74d171868934b6

Comment by Githook User [ 20/May/21 ]

Author:

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

Message: SERVER-56374: Add ability to write retryable findAndModify updates to `config.image_collection`.

(cherry picked from commit e557b13c8cff42b717bd85495e44e14eb888c482)
Branch: v4.4
https://github.com/mongodb/mongo/commit/2153e4efa57d5543f275cc54b8df32d65b2808ef

Comment by Githook User [ 07/May/21 ]

Author:

{'name': 'Jason Chan', 'email': 'jason.chan@10gen.com', 'username': 'jasonjhchan'}

Message: SERVER-56374 Add ability to write retryable findAndModify updates to `config.image_collection`
Branch: v4.0
https://github.com/mongodb/mongo/commit/10e041bf652a253cb60e4135c7172663d20e1fcf

Comment by Githook User [ 07/May/21 ]

Author:

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

Message: SERVER-56374: Add ability to write retryable findAndModify updates to `config.image_collection`.
Branch: master
https://github.com/mongodb/mongo/commit/e557b13c8cff42b717bd85495e44e14eb888c482

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