[SERVER-53132] scoped task executor shutdown called during PrimaryOnlyService::shutdown should throw ErrorCodes::InterruptedAtShutdown. Created: 30/Nov/20  Updated: 06/Dec/22  Resolved: 01/Dec/20

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

Type: Bug Priority: Major - P3
Reporter: Suganthi Mani Assignee: Backlog - Service Architecture
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-52751 Remove the interrupt() function from ... Backlog
Assigned Teams:
Service Arch
Participants:

 Description   

Currently PrimaryOnlyService::shutdown() interrupts the instances using ErrorCodes::InterruptedAtShutdown . Also shuts down the scoped task executor, and the executor shutdown status gets returned is {ErrorCodes::InterruptedDueToReplStateChange",PrimaryOnlyService executor shut down due to stepDown"}. Though both ErrorCodes::InterruptedAtShutdown & ErrorCodes::InterruptedDueToReplStateChange are retryable error codes, it can cause confusion.



 Comments   
Comment by Ratika Gandhi [ 01/Dec/20 ]

Will be unnecessary after SERVER-52751. matthew.saltz

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