[SERVER-78078] $listSampledQueries crashes if the fetching of queries involves a getMore command Created: 14/Jun/23  Updated: 29/Oct/23  Resolved: 21/Jun/23

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

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:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Sprint: Sharding NYC 2023-06-26
Participants:

 Description   

DocumentSourceListSampledQueries::doGetNext() currently does not store the DBDirectClient that it uses to create the DBClientCursor for fetching. As a result, when DBClientCursor::assembleGetMore() tries to run a getMore command, it crashes because the DBClientBase is no longer valid.



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

Author:

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

Message: SERVER-78078 Make sure $listSampledQueries can fetch sampled queries using getMore commands

(cherry picked from commit a19a9d16d9db20a53dee887b5e702016b80374ab)
Branch: v7.0
https://github.com/mongodb/mongo/commit/0eaa30cb4f170f4714d960432e6331f662654a63

Comment by Githook User [ 21/Jun/23 ]

Author:

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

Message: SERVER-78078 Make sure $listSampledQueries can fetch sampled queries using getMore commands
Branch: master
https://github.com/mongodb/mongo/commit/a19a9d16d9db20a53dee887b5e702016b80374ab

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