Error
Error Code:
178
MongoDB Error 178: Range Conflict Detected
Description
Error 178, 'Range Overlap Conflict', indicates that MongoDB has detected an inconsistency where two or more data ranges (typically chunks or zones in a sharded cluster) are defined to cover the same space within the shard key range. This prevents operations that rely on unique range ownership, such as migrations or data distribution.
Error Message
Range Overlap Conflict
Known Causes
3 known causesIncorrect Zone or Chunk Range Configuration
This error can occur when manually defining or modifying shard key ranges for zones, or directly manipulating chunk boundaries, resulting in overlapping definitions that claim the same data space.
Conflicting Chunk Migration
During internal data migrations (e.g., by the balancer), an unexpected state or race condition might lead to the system temporarily or persistently detecting that two chunks claim ownership over the same range of data.
Config Server Metadata Inconsistency
In rare scenarios, inconsistencies or corruption within the config server's metadata can lead to an incorrect representation of data ranges, causing the system to detect an overlap that isn't intended.
Solutions
Coming SoonGeneral Troubleshooting Tips
- Check the error message carefully for specific details
- Review recent changes that might have caused the error
- Search for the exact error code in the official documentation
- Check log files for additional context
- Try restarting the application or service