[SERVER-41481] Return dbResponse object stored with exhaustNS and exhaustCursorId in receivedCommands Created: 03/Jun/19  Updated: 29/Oct/23  Resolved: 21/Jun/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.2.1, 4.3.1

Type: Task Priority: Major - P3
Reporter: Jason Chan Assignee: Vishnu Kaushik
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-41482 makeExhaustMessage should no longer c... Closed
is depended on by SERVER-38361 Disable BSON obj validation while cre... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2
Sprint: Repl 2019-06-17, Repl 2019-07-01
Participants:

 Description   

Add a new member exhaustCursorId in DbResponse object to hold the exhaust cursor id information.

receivedCommands() in the command execution layer should return DBResponse with exhaustNS & exhaustCursorId members populated from response data (which is built by execCommandDatabase() and stored in replyBuilder->getBodyBuilder()) cursor.ns and cursor.id fields respectively. The values should be populated before serializing the response data and sending it to network layer. The values gets populated only if the following conditions are satisfied:

  • Request message has OpMsg::kExhaustSupported flag set.
  • Response data has “ok” field set to 1 (no error) and contains “cursor” object field.


 Comments   
Comment by Githook User [ 15/Aug/19 ]

Author:

{'name': 'Vishnu Kaushik', 'email': 'vishnu.kaushik@mongodb.com', 'username': 'kauboy26'}

Message: SERVER-41481 Return dbResponse object stored with exhaustNS and exhaustCursorId in receivedCommands

(cherry picked from commit 8b0a7b102b92891818175358b0ca82a545105023 and 00735a86d6100499519670bcc8767412d3c794cb)
Branch: v4.2
https://github.com/mongodb/mongo/commit/1c9a8d67d7f03e2f9e975d865b1ba3b38801dfec

Comment by Githook User [ 19/Jun/19 ]

Author:

{'name': 'Vishnu Kaushik', 'email': 'vishnu.kaushik@mongodb.com'}

Message: SERVER-41481 updated DbResonse exhaustCursorId comment
Branch: master
https://github.com/mongodb/mongo/commit/00735a86d6100499519670bcc8767412d3c794cb

Comment by Githook User [ 19/Jun/19 ]

Author:

{'name': 'Vishnu Kaushik', 'email': 'vishnu.kaushik@mongodb.com'}

Message: SERVER-41481 1 started new branch, added functionality for exhaustCursorId once again. Trying to kill the purple
Branch: master
https://github.com/mongodb/mongo/commit/8b0a7b102b92891818175358b0ca82a545105023

Generated at Thu Feb 08 04:57:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.