[SERVER-69714] explain command for cluster write and cluster aggregate can be invoked on non-shardsvr mongod Created: 15/Sep/22  Updated: 29/Oct/23  Resolved: 25/Oct/22

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

Type: Bug Priority: Major - P3
Reporter: Cheahuychou Mao Assignee: Wenqin Ye
Resolution: Fixed Votes: 0
Labels: neweng, sharding-nyc-subteam2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 5
Story Points: 3

 Description   

SERVER-63495 linked cluster find, aggregate, getMore, insert, update and delete into mongod. It relies on calling Impl::checkCanRunHere() to prevent these commands from being run on a non-shardsvr mongod. However, currently this method is not called in the explain() method for ClusterWriteCmd and ClusterPipelineCommandBase so right now the explain command for cluster write and cluster aggregate can be invoked on non-shardsvr mongod. As shown in BF-26337, running it causes the mongod to hit a segmentation fault.



 Comments   
Comment by Githook User [ 25/Oct/22 ]

Author:

{'name': 'wenqinYe', 'email': 'wenqin908@gmail.com', 'username': 'wenqinYe'}

Message: SERVER-69714 Fix explain command for cluster write and cluster aggregate can be invoked on non-shardsvr mongod
Branch: master
https://github.com/mongodb/mongo/commit/0fc00df717206cee4ba0165fb50b84411c5e4517

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