Apache Druid recovery

A missing Druid segment needs its deep-storage object, metadata record, and ingestion lineage reconciled before reindexing.

Apache Druid stores immutable segment files in deep storage while the metadata database tracks which segments belong to a datasource and interval. Historical processes load those objects locally, but local caches are not the system of record.

Understand the symptom

Availability, physical segment integrity, and logical interval completeness are different questions.

WHY

What is happening

A segment can be unavailable because no Historical has loaded it, physically missing from deep storage, or readable but incomplete for the expected interval. Druid kill tasks permanently remove metadata and deep-storage objects, while reindexing may create a new version that overshadows older segments. Recovery therefore starts by matching segment IDs, versions, partitions, checksums, and source lineage.

What you may see

Symptoms that change the recovery path.

01

Coordinator shows unavailable segments

No serving replica is loaded for one or more published segment IDs.

02

Historical download fails

The deep-storage object may be missing, unreadable, or inconsistent with metadata.

03

Queries omit an interval

A shard, partition, or entire interval may be absent or overshadowed.

04

Segment loading loops

Repeated load and drop activity can indicate corrupt objects or capacity and placement problems.

Protect the source

Actions that can make the situation worse.

01

Kill tasks can make loss permanent

They remove both metadata records and deep-storage files.

02

Blind reindexing can overwrite lineage

A new version can overshadow evidence needed to understand the gap.

03

Copying caches may mix generations

Historical caches can contain stale or partially downloaded segments.

Do this now

Safe steps before evaluation.

01

Pause destructive tasks

Stop kill, compaction, retention, and reindex jobs for affected datasources.

02

Snapshot all recovery layers

Preserve deep storage, metadata database, Historical caches, and task logs.

03

Inventory exact segment IDs

Record datasource, interval, version, partition, size, checksum, and replica state.

04

Secure original inputs

Retain batch files, stream offsets, schemas, transforms, and ingestion specs.

NEPFOSYS process

How a data-first evaluation proceeds.

01

Segment lineage map

NEPFOSYS correlates metadata, deep-storage objects, caches, and source inputs.

02

Protected object validation

Candidate segment files are copied and checked without modifying production.

03

Interval reconstruction

Complete partitions are restored or rebuilt, then query results are compared with source totals.

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.

Can a Historical cache restore a missing segment?

Sometimes, if it holds a complete matching segment; preserve and validate it before copying.

Should I run a kill task to clear errors?

No. A kill task can delete the only recoverable metadata and deep-storage object.

Can I simply reingest the interval?

Only when the original input, offsets, schema, and partitioning are complete and the existing lineage is preserved.

DFW local · Nationwide mail-in

Protect the device. Start with the facts.

Start my recovery case