[SERVER-2399] Replica set check runs only once per replica in C++ client, is this fine? Created: 24/Jan/11  Updated: 12/Jul/16  Resolved: 24/Jan/11

Status: Closed
Project: Core Server
Component/s: Internal Client, Replication, Sharding
Affects Version/s: 1.7.5
Fix Version/s: 1.7.5

Type: Question Priority: Major - P3
Reporter: Aristarkh Zagorodnikov Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

While exploring client/dbclient_rs.cpp (see http://jira.mongodb.org/browse/SERVER-2377), I discovered that, apparently, the ReplicaSetMonitorWatcher runs only once per replica set, with a 20-second delay after first access to the replica set.
Maybe this is fine, but above the class declaration there is a comment, stating "global background job responsible for checking every X amount of time", which sounds like it should be a periodic task instead of a one-time background job.
I think either the watcher should run every X seconds, or the comment should be changed to state that this is a one-time per-replica set process.



 Comments   
Comment by auto [ 24/Jan/11 ]

Author:

{u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: ReplicaSetMonitorWatcher needs to run all the time SERVER-2399
https://github.com/mongodb/mongo/commit/9c1381ece0055e5582b874205eb7493676b500bb

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