[SERVER-41482] makeExhaustMessage should no longer call OpMsg::parse 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
depends on SERVER-41481 Return dbResponse object stored with ... 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:
Linked BF Score: 0

 Description   

makeExhaustMessage()should no longer call OpMsg::parse on the previous response message. Instead, it should get the cursor info directly from DBResponse object. Also, it should return empty message if either DBResponse::exhaustNS is empty or DBResponse::exhaustCursorId is equal to 0.



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

Author:

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

Message: SERVER-41482 removed the call to OpMsg::parse and used the exhaustCursorId present with DbResponse

SERVER-41482 added functionality to load DbResponse's exhaustCursorId and exhaustNS in the mock SEP's handleRequest() method.

(cherry picked from commit 451d98685a3275b4cfd53164cf323155cbb3260a)
Branch: v4.2
https://github.com/mongodb/mongo/commit/306841443067f947b864c42ca44b11c0ecd1d2e3

Comment by Githook User [ 21/Jun/19 ]

Author:

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

Message: SERVER-41482 removed the call to OpMsg::parse and used the exhaustCursorId present with DbResponse

SERVER-41482 added functionality to load DbResponse's exhaustCursorId and exhaustNS in the mock SEP's handleRequest() method.
Branch: master
https://github.com/mongodb/mongo/commit/451d98685a3275b4cfd53164cf323155cbb3260a

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