[SERVER-43044] IndexBuildsCoordinator does not report operation statistics from the index build thread Created: 26/Aug/19  Updated: 29/Oct/23  Resolved: 09/Apr/20

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

Type: Bug Priority: Major - P3
Reporter: Louis Williams Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: groomed
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-39218 Simultaneous index builds improvement... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Execution Team 2020-04-20
Participants:

 Description   

If I create an index, the operation statistics reported do not include the statistics from the IndexBuildsCoordinator thread that built the index.

e.g:

command test.Collection0 command: createIndexes { createIndexes: "Collection0", ... numYields:0 reslen:257 locks:{ ParallelBatchWriterMode: { acquireCount: { r: 3 } }, ReplicationStateTransition: { acquireCount: { w: 4 } }, Global: { acquireCount: { r: 1, w: 3 } }, Database: { acquireCount: { r: 1, w: 3 } }, Collection: { acquireCount: { w: 1, W: 2 } }, Mutex: { acquireCount: { r: 4 } } } flowControl:{ acquireCount: 2 } storage:{} protocol:op_msg 36458ms

This would have previously reported the following:

  • numYields > 0 due to yielding
  • high lock acquisitions due to yielding
  • storage statistics for the number of bytes read and written


 Comments   
Comment by Githook User [ 09/Apr/20 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-43044 IndexBuildsCoordinatorMongod reports operation statistics for slow ops

(cherry picked from commit 8efaacf43cb9860e12f97067c25c842108d66fa4)
Branch: v4.4
https://github.com/mongodb/mongo/commit/199098b550b1f17a79c14a937eb3ec6ff5828689

Comment by Githook User [ 09/Apr/20 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-43044 IndexBuildsCoordinatorMongod reports operation statistics for slow ops
Branch: master
https://github.com/mongodb/mongo/commit/8efaacf43cb9860e12f97067c25c842108d66fa4

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