[SERVER-67220] [5.0] set_fcv_prepared_transaction.js is not resilient to StaleConfig errors Created: 13/Jun/22  Updated: 29/Oct/23  Resolved: 13/Jun/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.10, 4.4.16

Type: Bug Priority: Major - P3
Reporter: Gregory Noma Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Sharding 2022-06-27
Participants:
Linked BF Score: 159

 Description   

For versions before 5.3, after a migration the recipient shard most of the time will not know that it has received a chunk, until a more recent router comes to look for it. Currently set_fcv_prepared_transaction.js does not account for these StaleConfig errors and mongos implicitly aborting the transaction.



 Comments   
Comment by Githook User [ 13/Jun/22 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-67220 Make set_fcv_prepared_transaction.js resilient to StaleConfig errors

(cherry picked from commit 38670daf725de27444a28d83eca7b80ac0933e16)
Branch: v4.4
https://github.com/mongodb/mongo/commit/b1278976e14df2f5af6be18ab7a60f56c43357f9

Comment by Githook User [ 13/Jun/22 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}

Message: SERVER-67220 Make set_fcv_prepared_transaction.js resilient to StaleConfig errors
Branch: v5.0
https://github.com/mongodb/mongo/commit/38670daf725de27444a28d83eca7b80ac0933e16

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