Apache BookKeeper recovery

An underreplicated BookKeeper ledger must be mapped to its ensembles and surviving entries before bookie replacement.

Apache BookKeeper writes ledger entries across bookie ensembles according to ensemble, write, and acknowledgment quorums. ZooKeeper or another metadata store tracks ledger metadata, while bookie journals, entry logs, and indexes hold the physical data.

Understand the symptom

A ledger may remain readable yet still lack the redundancy required to survive another failure.

WHY

What is happening

Replication checks identify fragments whose ensemble no longer has enough healthy copies. Auditor and replication workers can rereplicate those fragments from readable bookies, but they cannot recreate entries that are absent from every surviving write quorum. Cookie identity and directory layout also matter when deciding whether a bookie is returning or being replaced.

What you may see

Symptoms that change the recovery path.

01

Underreplicated ledger count rises

One or more fragments lack the configured healthy replica set.

02

Bookie is fenced or unavailable

Clients cannot safely continue writing to its ledger fragments.

03

Ledger reads fail at certain entries

The required entry may be missing from all reachable ensemble members.

04

Replacement bookie rejects its cookie

Identity or directory metadata does not match the expected bookie instance.

Protect the source

Actions that can make the situation worse.

01

Formatting removes bookie identity and data

Journals and entry logs may be the only surviving copies.

02

Bulk rereplication can spread incomplete fragments

The source set must first be confirmed readable and complete.

03

Editing metadata can detach valid fragments

Ledger ensemble history is required to locate entries.

Do this now

Safe steps before evaluation.

01

Pause cleanup and formatting

Stop bookie format, ledger deletion, compaction, and destructive replacement steps.

02

Image every bookie directory

Preserve journals, entry logs, indexes, cookies, and disk mount relationships.

03

Snapshot metadata

Capture ledger metadata, ensembles, underreplicated records, and bookie registrations.

04

Record exact quorum settings

Save ensemble, write, and acknowledgment quorum values with service logs.

NEPFOSYS process

How a data-first evaluation proceeds.

01

Ledger-fragment map

NEPFOSYS correlates metadata ensembles with physical entry locations.

02

Entry-level validation

Surviving journals and logs are checked for required ledger and entry IDs.

03

Controlled rereplication

Complete fragments are reconstructed on protected storage and validated through client reads.

A clear next step

Preserve the original device before another repair or recovery attempt.

Start a case with the exact symptoms, incident timeline, prior attempts, encryption details, and the files that matter most. NEPFOSYS will route the case to the appropriate DFW intake or nationwide mail-in path.

Start with a case review

Questions, answered

What customers ask before starting.

Does underreplicated mean data is already lost?

Not always. It means redundancy is below policy; the entries may still be readable.

Can AutoRecovery fix every ledger?

Only when a readable source copy exists for every required entry.

Why preserve bookie cookies?

They bind a bookie identity to its storage directories and help distinguish return from replacement.

DFW local · Nationwide mail-in

Protect the device. Start with the facts.

Start my recovery case