Couchbase recovery

A Couchbase vBucket lost after hard failover needs active, replica, and failover histories compared before rebalance.

Couchbase partitions bucket data into vBuckets with one active and configured replicas. Hard failover promotes available replicas quickly, but data not replicated to the promoted copy can be absent from the new active history.

Understand the symptom

A promoted replica and a failed former active can contain different valid sequence ranges.

WHY

What is happening

Each vBucket tracks sequence numbers and failover history used by DCP consumers and rollback decisions. Hard failover can lose acknowledged mutations under some durability and replication conditions. Delta or full recovery of a returning node changes membership, so its original files should first be compared with the promoted active and any other replica.

What you may see

Symptoms that change the recovery path.

01

Some documents disappear after failover

The promoted replica may not contain the former active's latest mutations.

02

vBucket reports missing or dead

No usable active or replica copy is assigned for that partition.

03

DCP consumer rolls back

Its checkpoint is incompatible with the new vBucket failover history.

04

Rebalance or recovery fails

Returning node state, topology, or physical files cannot be reconciled.

Protect the source

Actions that can make the situation worse.

01

Rebalancing out removes recoverable placement

The failed node's unique vBucket files may be discarded.

02

Returning a node can overwrite its history

Cluster recovery may initialize or roll back local partitions.

03

Choosing only the promoted active can miss documents

The former active may contain later sequence numbers.

Do this now

Safe steps before evaluation.

01

Freeze topology changes

Stop rebalance, add-back, bucket flush, compaction, and node reinitialization.

02

Image every node

Copy data, indexes, configuration, and logs from active, replica, and failed nodes.

03

Capture vBucket histories

Record maps, sequence numbers, failover logs, DCP checkpoints, durability, and replica count.

04

Secure logical copies

Preserve backups, XDCR targets, eventing state, and application transaction records.

NEPFOSYS process

How a data-first evaluation proceeds.

01

vBucket-generation map

NEPFOSYS compares active and replica sequence histories across nodes.

02

Document-level reconciliation

Candidate partitions are cloned and checked for keys, revisions, tombstones, and conflicts.

03

Controlled bucket restoration

Recovered data is validated for documents, indexes, DCP continuity, and application behavior.

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 hard failover lose recent documents?

Yes, if mutations had not reached the promoted replica under the configured durability and replication behavior.

Should I rebalance the failed node out immediately?

Preserve its data first when it may hold unique or newer vBucket content.

Why do DCP clients roll back after failover?

The promoted vBucket has a new failover history and may not include the client's previous checkpoint.

DFW local · Nationwide mail-in

Protect the device. Start with the facts.

Start my recovery case