[SERVER-66996] Add warnings to ReplicaSetAwareServiceRegistry for services that block drain mode Created: 03/Jun/22  Updated: 29/Oct/23  Resolved: 22/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaitlin Mahar
Resolution: Fixed Votes: 0
Labels: former-quick-wins
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Replication
Backwards Compatibility: Fully Compatible
Sprint: Repl 2023-03-06, Repl 2023-03-20, Repl 2023-04-03
Participants:

 Description   

ReplicaSetAwareService implementations have the ability to run in drain mode and some of the ones that we have take advantage of that.

We should add some logic in the ReplicaSetAwareServiceRegistry which keeps a tally of how much time each service spends in drain mode and then logs a warning if:

  1. The total time all services take is more than some threshold (say 500ms)
  2. Either one of the services takes more than some threshold (say 250ms)

If there are other events on the RSAS that have the potential of causing unavailability if they take too much time, we should add warnings for them as well.



 Comments   
Comment by Githook User [ 22/Mar/23 ]

Author:

{'name': 'Kaitlin Mahar', 'email': 'kaitlin.mahar@mongodb.com', 'username': 'kmahar'}

Message: SERVER-66996 Log warnings when ReplicaSetAwareServices and PrimaryOnlyServices block stepUp from completing
Branch: master
https://github.com/mongodb/mongo/commit/75a60fabbfd7cb3df17cc509f8babf38a1087a52

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