Skip to content

[Admin] Make reload and maintenance commands wait #384

@levkk

Description

@levkk

Description

Make RELOAD and MAINTENANCE commands block until their tasks are complete. This gives feedback to the caller that it's now safe to execute next step in their workflow.

For RELOAD:

  1. Wait until active clients dropped the reference to the old pool. idle clients will hold it until the next query. Maybe add a notify to all clients to fetch latest Cluster config immediately to make this more deterministic?

For MAINTENANCE:

  1. Wait until all clients are either idle or waiting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    plumbingInfra stuff that's important to have but it's not that exciting to work on.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions