[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: |
|
||||||||
| 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: (cherry picked from commit a19a9d16d9db20a53dee887b5e702016b80374ab) |
| Comment by Githook User [ 21/Jun/23 ] |
|
Author: {'name': 'Cheahuychou Mao', 'email': 'mao.cheahuychou@gmail.com', 'username': 'cheahuychou'}Message: |