cloud_storage: robust handling of enabling/disable tiered storage #6627
Open
Description
Currently, toggling remote.write on a topic has quite literal effects: e.g. when you stop doing uploads, it'll just stop. Existing data stays in S3. When you switch it on again, if the local log was truncated in the meantime, you end up with a weird state in S3 with a gap in the data range.
Summarizing a list of suggestions for lifecycle operations (from @Lazin):
- disabling SI temporarily (prevent retention from deleting local data until SI is re-enabled, maybe the command should take a duration)
- disabling SI permanently (delete all data in the cloud)
- enable SI for existing partition (upload what's available locally)
JIRA Link: CORE-1035