-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Sharding EMEA 2022-02-21
The jsTest timeseries_metric_index_2dsphere.jsĀ asserts that ErrorCodes::BadValue is thrown when invalid documents are provided. However, the code does not throw this error code. This hasn't been caught because the loop used to check these documents is incorrect, and is inserting the indices of the documentĀ (because of how for/in loops work in javascript) which are currently just ignored by the bulk insert api.