[SERVER-53248] call awaitLastOpCommitted before committing transaction in retryable_prepared_commit_transaction_after_failover.js Created: 04/Dec/20  Updated: 29/Oct/23  Resolved: 11/Jan/21

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.9.0, 4.2.13, 4.4.5

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

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4, v4.2
Sprint: Repl 2020-12-14, Repl 2020-12-28, Repl 2021-01-11, Repl 2021-01-25
Participants:
Linked BF Score: 17

 Description   

If the primary hadn't propagated the commit point to the secondary before it's stepped up in the test, then when the new primary goes to commit the transaction, it may not think that the prepare was majority committed. We should call awaitLastOpCommitted after the new primary steps up before committing the transaction.



 Comments   
Comment by Githook User [ 18/Feb/21 ]

Author:

{'name': 'Samy Lanka', 'email': 'samy.lanka@mongodb.com', 'username': 'lankas'}

Message: SERVER-53248 call awaitLastOpCommitted before committing transaction in retryable_prepared_commit_transaction_after_failover.js
Branch: v4.2
https://github.com/mongodb/mongo/commit/9ba0349ccab5635475e9ade549f163cfd2b7b7d9

Comment by Githook User [ 17/Feb/21 ]

Author:

{'name': 'Samy Lanka', 'email': 'samy.lanka@mongodb.com', 'username': 'lankas'}

Message: SERVER-53248 call awaitLastOpCommitted before committing transaction in retryable_prepared_commit_transaction_after_failover.js
Branch: v4.4
https://github.com/mongodb/mongo/commit/e900aa20672f234c5f5d1522e29348de5edf8fcb

Comment by Githook User [ 11/Jan/21 ]

Author:

{'name': 'Samy Lanka', 'email': 'samy.lanka@mongodb.com', 'username': 'lankas'}

Message: SERVER-53248 call awaitLastOpCommitted before committing transaction in retryable_prepared_commit_transaction_after_failover.js
Branch: master
https://github.com/mongodb/mongo/commit/dcf844f384803441b5393664e500008fc6902346

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