-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Open
Labels
databaseBanyanDB - SkyWalking native databaseBanyanDB - SkyWalking native databasefeatureNew featureNew feature
Milestone
Description
Search before asking
- I had searched in the issues and found no similar feature requirement.
Description
- Objective: Implement end-to-end deletion for a whole group, including removing all physical data and purging metadata from the metadata repository.
- Scope
- Remove all physical data structures of the group:
- Streams/measures data files, indexes, snapshots.
- Remove the group metadata and all child metadata (streams/measures) from the metadata repo atomically.
- Cluster-wide orchestration: block new writes for the group, drain/flush, then delete.
- Remove all physical data structures of the group:
- Requirements
- Idempotent API/CLI:
DELETE /groups/{group}
(server-side implements best-effort idempotency). - Safety: optional
dry-run
,force=true
for non-empty groups, preflight checks (no active schema changes). - Ordering:
- Quiesce group (reject new writes, wait for in-flight ops).
- Close the group tsdb.
- Remove physical data by the path prefix of the group.
- Purge metadata (group and descendants) from repo.
- Broadcast/evict routing, and discovery entries.
- Observability: Using metadata to track the progress of the deletion.
- Idempotent API/CLI:
- Acceptance Criteria
- Deleting a group removes all on-disk data and metadata and prevents new writes/reads.
- Operation is idempotent and safe under retries and leader failover.
- Works across rolling clusters; no orphaned files remain.
- Docs include an admin guide and recovery caveats.
Use case
No response
Related issues
No response
Are you willing to submit a pull request to implement this on your own?
- Yes I am willing to submit a pull request on my own!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
databaseBanyanDB - SkyWalking native databaseBanyanDB - SkyWalking native databasefeatureNew featureNew feature