301 — DataCorruptionDetected

storage

The storage engine detected data corruption

What is happening?

DataCorruptionDetected is returned when WiredTiger identifies that data on disk does not match its expected checksums or internal structure. This is a serious error that indicates physical data damage, possibly caused by hardware failure, filesystem corruption, unclean shutdown, or storage-layer bugs. The affected data cannot be trusted.

Common causes

  1. Disk hardware failure or bad sectors
  2. Unclean shutdown (power loss, OOM kill) without journaling flushed
  3. Filesystem-level corruption (e.g. damaged EBS volume, NFS errors)
  4. A bug in the storage engine (rare, check SERVER Jira for known issues)

Source code references

ErrorCodes::DataCorruptionDetected found in 12 locations in the MongoDB server source.

Diagnostic Steps