[SERVER-46648] Cancel pending requests upon receiving the first response Created: 05/Mar/20  Updated: 29/Oct/23  Resolved: 25/Mar/20

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.4.0-rc0, 4.7.0

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
Depends
depends on SERVER-46767 Provide a mapping from OperationKey t... Closed
Duplicate
is duplicated by SERVER-46469 AsyncDBClient::cancel hangs Closed
Related
is related to SERVER-46255 establishCursors/AsyncRequestsSender ... Closed
is related to SERVER-46469 AsyncDBClient::cancel hangs Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Service Arch 2020-03-23, Service Arch 2020-04-06
Participants:

 Description   

We should cancel all pending requests as soon as we receive the first response to the requests we send out. We should also make sure to kill any cursors established on the slower nodes if we don't manage to kill those operations in time.



 Comments   
Comment by Githook User [ 30/Mar/20 ]

Author:

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

Message: SERVER-46648 Make _killOperations command kill cursors

(cherry picked from commit 29798df747882fcb02fe98178d42ade0b9a0da52)
(cherry picked from commit f2ec5e85fdcdb5b34901cc23cec95f9b534841ec)
Branch: v4.4
https://github.com/mongodb/mongo/commit/2fde8af2f01d92830410e708c981eebe39931b16

Comment by Githook User [ 25/Mar/20 ]

Author:

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

Message: SERVER-46648 Make _killOperations command kill cursors

(cherry picked from commit 29798df747882fcb02fe98178d42ade0b9a0da52)
Branch: master
https://github.com/mongodb/mongo/commit/f2ec5e85fdcdb5b34901cc23cec95f9b534841ec

Comment by Githook User [ 20/Mar/20 ]

Author:

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

Message: SERVER-46648 Cancel pending requests upon receiving the first response

(cherry picked from commit c7a7d9ef04638802c8aac9f5e59c4e306b8e1cc3)
Branch: v4.4
https://github.com/mongodb/mongo/commit/e1785d8d9738f3fb10b000dd8176caec94b7a57b

Comment by Githook User [ 17/Mar/20 ]

Author:

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

Message: SERVER-46648 Cancel pending requests upon receiving the first response
Branch: master
https://github.com/mongodb/mongo/commit/c7a7d9ef04638802c8aac9f5e59c4e306b8e1cc3

Comment by Mira Carey [ 05/Mar/20 ]

It looks like query is looking into potentially hooking up _killOperations to also close cursors. Which might help here as well.

See SERVER-46255

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