-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Currently, the golden test output is serialized using JSON.stringify() here and here.
However, the error output produced when a reconstruction assertion fails is serialized with tojson(). The two serializers can render the same value differently, which makes it harder to correlate a failed test run against the pre-existing golden test output files.
One example of this is how an invalid new Date(NaN is handled:
MongoDB Enterprise > const date = new Date(9223372036854775807); MongoDB Enterprise > tojson(date) ISODate("0NaN-NaN-NaNTNaN:NaN:NaNZ") MongoDB Enterprise > JSON.stringify(date) null
This discrepancy made debugging SERVER-127282 tricky.
- is related to
-
SERVER-127282 plan_stability_subjoin_cardinality_md reconstruction mishandles open-ended date IXSCAN bounds
-
- Closed
-