[SERVER-37382] printShardingStatus.js races with ShardingUptimeReporter thread Created: 28/Sep/18  Updated: 29/Oct/23  Resolved: 14/Jan/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6.13, 4.0.7, 4.1.7

Type: Bug Priority: Trivial - P5
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6
Participants:
Linked BF Score: 16

 Description   

Test checks for entries in config.mongos which are populated on a background thread by ShardingUptimeReporter and can miss some expected entries if it checked too soon. It's easy to make a test fail by simply putting a sleep inside the background thread.



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

Author:

{'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}

Message: SERVER-37382 printShardingStatus.js races with ShardingUptimeReporter thread

(cherry picked from commit ae932281fe1677400456ee5297764606cac6f577)
Branch: v3.6
https://github.com/mongodb/mongo/commit/795dc5cb3977fc67e0cd640aa98b82138ccc6380

Comment by Dianna Hohensee (Inactive) [ 17/Apr/19 ]

renctan adding a request to backport to v3.6 because the associated BF is still failing on that branch.

Comment by Githook User [ 27/Feb/19 ]

Author:

{'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}

Message: SERVER-37382 printShardingStatus.js races with ShardingUptimeReporter thread

(cherry picked from commit ae932281fe1677400456ee5297764606cac6f577)
Branch: v4.0
https://github.com/mongodb/mongo/commit/cb9fc1cea8cc62a6dc59b6d39d65939fe338adf2

Comment by Githook User [ 14/Jan/19 ]

Author:

{'username': 'renctan', 'email': 'randolph@10gen.com', 'name': 'Randolph Tan'}

Message: SERVER-37382 printShardingStatus.js races with ShardingUptimeReporter thread
Branch: master
https://github.com/mongodb/mongo/commit/ae932281fe1677400456ee5297764606cac6f577

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