redpanda-data / redpanda

Redpanda is a streaming data platform for developers. Kafka API compatible. 10x faster. No ZooKeeper. No JVM!
https://redpanda.com
9.22k stars 564 forks source link

cloud_storage: robust handling of enabling/disable tiered storage #6627

Open jcsp opened 1 year ago

jcsp commented 1 year ago

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):

JIRA Link: CORE-1035

mmedenjak commented 1 year ago

Follow-up - https://app.incident.io/incidents/82

jcsp commented 1 year ago

Related:

Those tickets are for debug-oriented APIs, but a lot of the wiring will be the same as something more unified.

This ticket staying open to track creating a full supported API that we would plumb into e.g. Console UI.