apache / apache/incubator-pegasus

feat: support reset dead partition

Open
#2,173 0 comments 0 reactions 0 assignees View on GitHub
type/enhancement
Dominant language
C++
Stars
2.1k
Forks
328
PR merge metrics
No merged PRs in 30d

Description

## Feature Request

**Is your feature request related to a problem? Please describe:**
When data disk damage causes all three replicas to be unavailable, most of Pegasus's functions—such as backup, bulk load, and duplication—will not be usable. Therefore, a fallback strategy is needed to address this situation.

**Describe the feature you'd like:**

By resetting the dead paritions to abandon some data, you can trick the meta server into allowing functions like backup to proceed normally.

**Mainly two parts:**
1. Reset the partition configuration on the meta server and zookeeper.
2. Reserve the dead partition data on the target replica server.

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are identified. Start by tracing how the meta server and ZooKeeper store partition configuration, then examine how target replica servers retain dead-partition data. Done means both configuration reset and dead-data reservation work together so backup, bulk load, and duplication can proceed.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
databases, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.