[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: |
|
||||||||
| 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 |