[SERVER-48007] Destroy ARS in establishCursors out of line Created: 07/May/20  Updated: 29/Oct/23  Resolved: 08/May/20

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

Type: Improvement Priority: Major - P3
Reporter: Amirsaman Memaripour Assignee: Amirsaman Memaripour
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
Backport Requested:
v4.4
Sprint: Service arch 2020-05-18
Participants:

 Description   

Mongos has an instance of AsyncRequestsSender in here, and destroying it contributes to more than 1% of its execution time when running a read-only workload (YCSB 100% read).

We can move the destruction off of the critical path and potentially avoid the performance penalty.



 Comments   
Comment by Githook User [ 08/May/20 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-48007 Destroy ARS in establishCursors out of line

This commit delegates the destruction of the ARS instance in MultiStatementTransactionRequestsSender
to the opCtx baton to potentially move the cost off of the critical path.
Branch: master
https://github.com/mongodb/mongo/commit/a01e575c7f2811ee8c4d3b98ecb0230b1b991399

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