[SERVER-41351] Improve error message from failure to obtain lock for storage stats collection Created: 29/May/19  Updated: 29/Oct/23  Resolved: 12/Jun/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.0.11, 4.2.0-rc1, 4.3.1

Type: Improvement Priority: Major - P3
Reporter: Sulabh Mahajan Assignee: Luke Pearson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-41327 Investigate a query failure with Curs... Closed
Backwards Compatibility: Minor Change
Backport Requested:
v4.2, v4.0
Sprint: Storage Engines 2019-06-17
Participants:
Story Points: 1

 Description   

SERVER-41327 reported a query failure with CursorKilled error along with the following error in acquiring the lock for storage stats collection:

"Timed out obtaining lock while trying to gather storage statistics for a slow operation."

Though the above message is just a warning, it sounds like this is the cause of the query being killed. Improve the error to remove this confusion and to notify that at worst this would result in the absence of storage statistics from slow operation logs.



 Comments   
Comment by Githook User [ 17/Jun/19 ]

Author:

{'name': 'Luke Pearson', 'email': 'luke.pearson2@gmail.com'}

Message: SERVER-41351 Improve error message when failing to collect storage stats

(cherry picked from commit 30b84ce55b16ebf084786c71dc00959dba5c3b48)
Branch: v4.0
https://github.com/mongodb/mongo/commit/3f469e451c7ff6a46d908197da87d018dce27bdf

Comment by Githook User [ 17/Jun/19 ]

Author:

{'name': 'Luke Pearson', 'email': 'luke.pearson2@gmail.com'}

Message: SERVER-41351 Improve error message when failing to collect storage stats
Branch: master
https://github.com/mongodb/mongo/commit/30b84ce55b16ebf084786c71dc00959dba5c3b48

Comment by Githook User [ 17/Jun/19 ]

Author:

{'name': 'Luke Pearson', 'email': 'luke.pearson2@gmail.com'}

Message: SERVER-41351 Improve error message when failing to collect storage stats

(cherry picked from commit 30b84ce55b16ebf084786c71dc00959dba5c3b48)
Branch: v4.2
https://github.com/mongodb/mongo/commit/bc2514ef2fefa8460cbae78aa70e0817b1100573

Comment by Githook User [ 12/Jun/19 ]

Author:

{'name': 'Luke Pearson', 'email': '', 'username': 'luke-pearson'}

Message: SERVER-41351 Improve error message when failing to collect storage stats

(cherry picked from commit 30b84ce55b16ebf084786c71dc00959dba5c3b48)
Branch: v4.2
https://github.com/mongodb/mongo/commit/bc2514ef2fefa8460cbae78aa70e0817b1100573

Comment by Githook User [ 12/Jun/19 ]

Author:

{'name': 'Luke Pearson', 'email': '', 'username': 'luke-pearson'}

Message: SERVER-41351 Improve error message when failing to collect storage stats

(cherry picked from commit 30b84ce55b16ebf084786c71dc00959dba5c3b48)
Branch: v4.0
https://github.com/mongodb/mongo/commit/3f469e451c7ff6a46d908197da87d018dce27bdf

Comment by Githook User [ 12/Jun/19 ]

Author:

{'name': 'Luke Pearson', 'email '' : , 'username': 'luke-pearson'}

Message: SERVER-41351 Improve error message when failing to collect storage stats
Branch: master
https://github.com/mongodb/mongo/commit/30b84ce55b16ebf084786c71dc00959dba5c3b48

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