[SERVER-13301] Maintenance commands should drain running ops before starting Created: 20/Mar/14  Updated: 06/Dec/22  Resolved: 05/Oct/18

Status: Closed
Project: Core Server
Component/s: Admin, Concurrency, Replication
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Backlog - Replication Team
Resolution: Won't Fix Votes: 0
Labels: commands, maintenanceMode, recovering
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Replication
Participants:

 Description   

Commands like compact which change to replica state to recovering/maint. should drain all operations (which might get caught yielding) before they start. This is the logical step of operations:

  1. Transitions mode (Recovering) *
  2. Pause replication
  3. Wait on active user operations to finish
  4. Start work (which will probably locks large swaths of collections/dbs)
  • Once the first step is done new requests will be rejected


 Comments   
Comment by Gregory McKeon (Inactive) [ 05/Oct/18 ]

No external users have requested this issue.

Generated at Thu Feb 08 03:31:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.