Columnar: Review cluster shutdown behavior

Description

The RFC has the requirement of handling shutdown gracefully - at the moment the core only has support for ShutDownNow. Review that behavior, and explore the possibility of adding support for ShutDown with a grace period.

ShutDown(gracePeriod: Duration)

  • Shuts down the topology tracker / disconnects from all KV nodes.

  • Future requests fail with an idiomatic “cluster is already shut down” error.

  • Waits for all in-flight requests to complete or for the grace period to elapse, whichever comes first.

  • Any remaining in-flight requests fail with an idiomatic “operation canceled due to shutdown” error.

ShutDownNow()

  • Equivalent to ShutDown(Duration.ZERO)

Environment

None

Release Notes Description

None

Activity

Show:

Dimitris Christodoulou August 19, 2024 at 2:37 PM

Created tickets: and

Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Sprint

Story Points

Components

Priority

Instabug

Open Instabug

Sentry

Zendesk Support

Created August 6, 2024 at 3:59 PM
Updated August 19, 2024 at 2:38 PM
Resolved August 19, 2024 at 2:38 PM
Instabug