Stream stuck in 'being deleted' after delete + restart: ingestion rejected with 400 for up to 60+ min (default retention interval, timer resets on restart)
What happened?
After deleting a stream from the UI, the stream gets stuck in a "being deleted" state that:
- rejects all ingestion with
400 {"message":"Error# stream [_rumdata] is being deleted"} - rejects re-creation (
DELETE /api/{org}/streams/{name}returns 404 "stream not found" — ghost state: the delete endpoint says it doesn't exist, while ingest says it's being deleted) - persists across container restarts
In our case this broke the whole RUM pipeline (_rumdata stream) for over an hour.
Root cause (confirmed via PR #14725 description)
Stream deletion writes a /compact/delete/{org}/{type}/{name}/all marker and returns; the compactor's retention job performs the actual deletion and clears the marker. run_retention runs every ZO_COMPACT_DATA_RETENTION_INTERVAL + 3s (default 3603s ≈ 60min), and restarting the container makes it worse since the job sleeps a full interval before its first run — so with the default config and a restart in between, users can wait well over an hour before the stream becomes usable again.
Environment
- OpenObserve
openobserve/openobserve:latest(image built 2026-09-24, v1.0.x line, includes #14725) - single-node docker, local disk, default compaction settings
- repro: delete stream → recreate/restart container → ingest → 400 "is being deleted"
Workaround
Set ZO_COMPACT_DATA_RETENTION_INTERVAL=60 and recreate the container — the pending delete job executes within ~1-2 minutes and the marker clears. (Consider whether a much shorter default, or executing pending deletes immediately on startup, would avoid this class of lockout.)
Expected behavior
- Deleting a stream should complete (or at least allow re-ingestion) within seconds/minutes, not up to 60+ minutes.
- Restarting the instance should not defer pending delete jobs by another full interval.
- Ideally the UI/API should expose the deletion-in-progress state instead of a confusing 404 + 400 combo.
Source: openobserve/openobserve