[SERVER-61239] PrimaryOnlyService Improvements PoC Created: 04/Nov/21  Updated: 14/Dec/21  Resolved: 14/Dec/21

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

Type: Task Priority: Major - P3
Reporter: Matthew Saltz (Inactive) Assignee: Matthew Saltz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: Service Arch 2021-11-15, Service Arch 2021-11-22, Service Arch 2021-12-13, Service Arch 2022-1-10
Participants:
Story Points: 5

 Description   

We were asked to make some improvements to the PrimaryOnlyService infrastructure to help speed up development for the server-serverless team and other server engineers. There are a few important improvements we'd like to consider:

  • Unify cancellation paths
  • Improve the relationship between an instance's lifetime and its state document's lifetime.
  • Improve how services check for conflicting instances before constructing a new instance.
  • Fold 'checkIfOptionsConflict' into the base PrimaryOnlyService API.
  • Use CancellableOperationContextFactory to create OperationContexts to remove the need for OpCtx tracking in the Client decoration

Before making a follow-up project to do this work, we will do a PoC to get an idea of what kind of work we need to do and what a good ideal end state would be that would take into account these various considerations


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