[SERVER-60548] Timeseries insert path segfault Created: 07/Oct/21  Updated: 29/Oct/23  Resolved: 08/Oct/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 5.1.0-rc0
Fix Version/s: 5.2.0, 5.0.4, 5.1.0-rc1

Type: Bug Priority: Major - P3
Reporter: Sam Mercier Assignee: Gregory Noma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-57603 timeseries::MinMax::minUpdates/maxUpd... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.1, v5.0
Sprint: Execution Team 2021-10-18
Participants:

 Description   

See the comments for steps to repro

 

{"t":{"$date":"2021-10-07T22:07:12.070+00:00"},"s":"F",  "c":"ASSERT",   "id":23079,   "ctx":"conn2","msg":"Invariant failure","attr":{"expr":"data.type() == MinMaxStore::Type::kObject || data.type() == MinMaxStore::Type::kArray","file":"src/mongo/db/timeseries/minmax.cpp","line":570}}



 Comments   
Comment by Githook User [ 14/Oct/21 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-60548 Check for `kUnset` in `MinMax::_appendUpdates`

(cherry picked from commit 2caf04aea31915ca82238559b57a4a2c170072c3)
Branch: v5.0
https://github.com/mongodb/mongo/commit/61b33a95185511390ba5fb1147b34ba7cd7c4ec6

Comment by Githook User [ 12/Oct/21 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-60548 Check for `kUnset` in `MinMax::_appendUpdates`

(cherry picked from commit 2caf04aea31915ca82238559b57a4a2c170072c3)
Branch: v5.1
https://github.com/mongodb/mongo/commit/928379e225df91a60012b1420cdcfd99af8c88d9

Comment by Githook User [ 08/Oct/21 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-60548 Check for `kUnset` in `MinMax::_appendUpdates`
Branch: master
https://github.com/mongodb/mongo/commit/2caf04aea31915ca82238559b57a4a2c170072c3

Comment by Gregory Noma [ 08/Oct/21 ]

There are two tickets which touched minmax.cpp after 5.0: SERVER-57603 and SERVER-56717.

Comment by Sam Mercier [ 07/Oct/21 ]

in my testing this worked on 5.0 but we should probably backport whatever testing coverage we generate in order to prevent regressions.

Generated at Thu Feb 08 05:50:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.