Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
ALL
-
Execution Team 2020-10-05, Execution Team 2020-10-19
-
21
Description
The test-only command 'emptycapped' drops and recreates all indexes. Because of this, it is possible for dbHash to pick a read timestamp where the new _id index is not visible yet. Instead of returning a 'no _id index' error, dbHash should return a SnapshotUnavailable error, which is already an expected and routine error code.
This problem can be fixed by having 'emptycapped' set the collection's minimumVisibleSnapshot.