[SERVER-75664] Make the analyzeShardKey hook correctly catch QueryPlanKilled errors caused by ddl operations Created: 04/Apr/23  Updated: 29/Oct/23  Resolved: 04/Apr/23

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

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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding NYC 2023-04-17
Participants:
Linked BF Score: 30

 Description   

Currently, the hook only catches this error if the error message contains the string "drop". However, based on BF-28012, renameCollection can also lead to this error. So the check should be generalized.



 Comments   
Comment by Githook User [ 04/Apr/23 ]

Author:

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

Message: SERVER-75664 Make the analyzeShardKey hook not check error message when catching QueryPlanKilled error
Branch: master
https://github.com/mongodb/mongo/commit/32c18ca7a55041bd4a6c601a5c27a57219a74c25

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