Apache HBase recovery

HBase recovery must reconcile durable HFiles with newer edits that may exist only in WAL history.

HBase writes edits to a write-ahead log before flushing MemStore data to HFiles. A failed RegionServer, corrupt WAL, missing recovered.edits, or damaged HFile can leave regions offline or incomplete.

Understand the symptom

WAL splitting replays unflushed edits into the correct regions before new HFiles are written.

WHY

What is happening

Apache documents that recovery splits a failed RegionServer's WAL and replays edits. A corrupt segment can block or skip recent writes; an HFile error affects already flushed data. These layers need separate validation rather than deletion-based startup fixes.

What you may see

Symptoms that change the recovery path.

01

WAL split repeatedly fails

A lease, segment, filesystem, or edit record cannot be processed.

02

Region remains offline

Recovery edits or required HFiles are unavailable.

03

CorruptHFileException appears

An HFile is truncated, unreadable, or structurally invalid.

04

Data disappears after RegionServer crash

Recent MemStore edits may not have replayed from WAL.

Protect the source

Actions that can make the situation worse.

01

Deleting WALs loses acknowledged edits

Recent mutations may not exist in HFiles yet.

02

Removing an HFile loses flushed key ranges

The region may open with permanent gaps.

03

Bulk repair can change many regions

HDFS and catalog operations may multiply the incident scope.

Do this now

Safe steps before evaluation.

01

Stop balancing and cleanup

Pause compaction, region moves, WAL cleanup, and repair tools.

02

Copy WAL and region storage

Preserve HDFS paths, recovered.edits, HFiles, manifests, and checksums.

03

Capture cluster metadata

Save table, region, assignment, ZooKeeper, master, and version information.

04

Identify priority rows and time range

Use business keys and timestamps to validate replay completeness.

NEPFOSYS process

How a data-first evaluation proceeds.

01

Region and log mapping

NEPFOSYS correlates WAL segments, regions, sequence IDs, and HFiles.

02

Protected replay analysis

Edits and data files are evaluated from copies.

03

Row-level validation

Recovered tables are checked against keys, counts, timestamps, and application expectations.

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.

Are HBase WALs temporary?

They may be deleted after successful replay and flush, but during failure they can contain the only copy of recent acknowledged edits.

Can I delete a corrupt HFile?

That may let a region open while permanently removing its key-range data; preserve and assess it first.

What are recovered.edits?

They are split WAL edits assigned to a region for replay during recovery.

DFW local · Nationwide mail-in

Protect the device. Start with the facts.

Start my recovery case