[SERVER-60539] Densify crashes server when collection has both date and numeric values for the densify field. Created: 07/Oct/21 Updated: 07/Oct/21 Resolved: 07/Oct/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Davis Haupt (Inactive) | Assignee: | Davis Haupt (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Operating System: | ALL | ||||||||||||
| Backport Requested: |
v5.1
|
||||||||||||
| Steps To Reproduce: | db.test.insertMany([\{val: new Date()}, \{val: 2}]) db.test.aggregate([{$densify: {field: "val", range: {step: 1, bounds: "full", unit: "day"}}}])
Mongod log: "{"t": {"$date":"2021-10-07T16:05:59.342+00:00"},"s":"F", "c":"CONTROL", "id":4757800, "ctx":"conn1","msg":"Writing fatal message","attr":{"message":"std::exception::what(): bad_variant_access\nActual exception type: mpark::bad_variant_access\n"}}" |
||||||||||||
| Participants: | |||||||||||||
| Description |
|
Bad variant access when $densify is called on a collection where the values in the field that is being densified can be either a date or a number. |
| Comments |
| Comment by Davis Haupt (Inactive) [ 07/Oct/21 ] |
|
Both bugs have the same solution, so closing this ticket in favor of the one linked directly to a BF. |