Error
Error Code:
307
MongoDB Error 307: Missing Range Deletion Task
Description
This error indicates that a range deletion operation was stopped because the internal task document tracking its progress or existence could not be found. It typically occurs in sharded clusters when MongoDB attempts to clean up data ranges (e.g., after chunk migrations or shard rebalancing) but encounters an inconsistency in its internal state tracking mechanism, preventing the cleanup from completing.
Error Message
Range Deletion Abandoned Because Task Document Does Not Exist
Known Causes
3 known causesInconsistent Internal State
MongoDB's internal system collection, particularly in the `config` database, may have become inconsistent or corrupted, leading to the task document being lost or inaccessible.
Incomplete Cluster Operations
Previous sharding operations (like chunk migrations, shard removals, or rebalancing) might have been interrupted or failed, leaving behind orphaned or untracked range deletion tasks.
Manual Configuration Error
Accidental or incorrect manual manipulation of internal MongoDB system collections (e.g., `config` database) could lead to the deletion or corruption of critical task documents.
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