Apache Pinot recovery

A Pinot segment marked BAD should be traced across controller metadata, deep store, and server copies before replacement.

Apache Pinot publishes immutable segments through controller metadata and stores downloadable copies in a configured segment store. Servers may retain local segment directories that are useful evidence when the canonical object is damaged or missing.

Understand the symptom

A BAD external view state describes serving failure, not necessarily which copy is authoritative.

WHY

What is happening

A segment can fail because download, decompression, checksum, conversion, or loading did not complete. Reload requests can rebuild server state from deep store only when that object is intact. For real-time tables, segment names and metadata also encode partition and offset lineage, so reconstruction must not silently skip source events or duplicate a consumed range.

What you may see

Symptoms that change the recovery path.

01

External view reports BAD

One or more servers could not load the assigned segment.

02

Download repeatedly fails

The segment URI, credentials, object, or checksum may be invalid.

03

Queries show a time-range gap

An offline segment or completed real-time segment is not serving.

04

Server copies disagree in size

One copy may be partial, stale, or independently recoverable.

Protect the source

Actions that can make the situation worse.

01

Deleting metadata removes placement context

Segment lineage and server assignments can become harder to reconstruct.

02

Reloading from damaged deep store repeats failure

It can also replace useful local evidence.

03

Resetting stream offsets creates gaps or duplicates

Real-time recovery must preserve consumed ranges.

Do this now

Safe steps before evaluation.

01

Pause retention and segment deletion

Stop cleanup, replacement, and rebalance work for the table.

02

Acquire every candidate copy

Preserve deep store and all local server segment directories.

03

Export control metadata

Save table config, schema, controller and ZooKeeper metadata, external view, and logs.

04

Record ingestion lineage

Capture task specs, partition IDs, start and end offsets, and source retention status.

NEPFOSYS process

How a data-first evaluation proceeds.

01

Segment-copy comparison

NEPFOSYS matches IDs, sizes, checksums, metadata, and server generations.

02

Read-only segment validation

Candidate files are opened on isolated systems and indexes are checked.

03

Controlled table restoration

Validated segments are restored and queried for interval, row-count, and key consistency.

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.

Will Reload Segment repair a corrupt deep-store object?

No. Reload uses the stored object; a damaged source must first be replaced with a validated copy.

Can a server copy be reused?

Possibly, when it is complete and matches the expected segment metadata.

What matters for a real-time segment?

Partition identity, consumed offset range, completion state, schema, and the segment's physical integrity.

DFW local · Nationwide mail-in

Protect the device. Start with the facts.

Start my recovery case