[SERVER-84265] Make jscore tests that currently expect mongod explain format handle mongos explain format Created: 17/Dec/23  Updated: 21/Dec/23  Resolved: 21/Dec/23

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

Type: Task 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
is depended on by SERVER-83078 Add jscore passthrough testing for co... Closed
Backwards Compatibility: Fully Compatible
Sprint: Cluster Scalability 2023-12-25
Participants:

 Description   

SERVER-83078 is adding a suite like replica_set_jscore_passthrough but with replica set endpoint enabled, meaning commands like explain will be executed using the router code paths. There are some structural differences between the explain result returned by a mongos and by mongod. There is already a util file (namely analyze_plan.js) with helpers for handling the differences but some of the helpers (e.g. this) currently would only parse the explain result differently if the host returns the hello response with "dbgrid" which doesn't cover the case where the host is a mongod acting as a router when replica set endpoint is enabled since the mongod by design still returns mongod hello response. Also, there are a number of jstests/core tests that don't even use those helpers because they are currently not being run in sharding suites. 



 Comments   
Comment by Githook User [ 21/Dec/23 ]

Author:

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

Message: SERVER-84265 Make jscore tests that currently expect mongod explain format handle mongos explain format (#17655)

GitOrigin-RevId: b7fd02662ac43a9db39e5adb9adcc386f64feedf
Branch: master
https://github.com/mongodb/mongo/commit/e32a4692a4f1de014fa01fe0b15acfd9c2a557a4

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