Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-69835

Add functionality for PrimaryOnlyService for cleaning up instances

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Service Arch

      Currently, instances are mainly released via the opObserver callback. However, there are cases when the PrimaryOnlyService instance can exist in the registry but with no corresponding document in the database. Users of PrimaryOnlyService will have to remember to call releaseInstance manually in these cases. The suggestion for this ticket is to provide a function that performs both deleting the state document and unconditionally releasing the instance to minize users from forgetting to release the instance manually.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: