apache / apache/bookkeeper

API to delete multiple ledgers at once

Open
#2,316 2 comments 1 reaction 0 assignees View on GitHub
triage/week-17 type/feature
Dominant language
Java
Stars
2k
Forks
976
Avg merge
6d 15h
Merged PRs (30d)
7

Description

**FEATURE REQUEST**

1. Please describe the feature you are requesting.
Add the ability to drop a few ledgers in a single atomic operation.

2. Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have).
should-have

3. Provide any additional detail on your proposed use case for this feature.

We could leverage ZooKeeper "multi" operation
https://zookeeper.apache.org/doc/r3.5.5/api/org/apache/zookeeper/ZooKeeper.html#multi(java.lang.Iterable).

Sometimes it happens that you need to delete multiple ledgers at once, and deleting only a single ledger could lead to an inconsistent state of the system (partial deletion of data).
Actually in case of a failure you need to implement garbage collection like mechanisms that scan for orphan ledgers and delete them.

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing single-ledger deletion API and its tests, then read the linked ZooKeeper multi-operation documentation. The work is done when multiple ledger deletions are exposed through one atomic operation and failure behavior is covered so partial deletion does not leave inconsistent state.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design, distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.