Skip to content

Commit

Permalink
Support deleting timeseries by name during schema upgrades (#6040)
Browse files Browse the repository at this point in the history
This adds support for listing timeseries by name in a schema upgrade
directory, and deleting all records (schema and data) from those
timeseries during an offline ClickHouse database upgrade. The main goal
here is a relatively simple but effective mechanism to clean up
abandoned timeseries, while we figure out how to implement breaking
changes more robustly.

We alreay have examples of these abandonded timeseries in some existing
installations. The existing effort to move timeseries to TOML also
presents an opportunity to make one-time breaking changes for individual
timeseries. Both of these can be supported with this mechanism.

Fixes #5266
  • Loading branch information
bnaecker authored Jul 16, 2024
1 parent f6d9e3c commit 76dc293
Show file tree
Hide file tree
Showing 2 changed files with 478 additions and 0 deletions.
Loading

0 comments on commit 76dc293

Please sign in to comment.