[SERVER-73235] Replace invariant with uassert in geometry_container Created: 24/Jan/23  Updated: 29/Oct/23  Resolved: 24/Jan/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.3.0-rc0, 6.0.5

Type: Task Priority: Major - P3
Reporter: Ivan Fefer Assignee: Ivan Fefer
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-73242 Partial index with $geoWithin filter ... Backlog
is related to SERVER-57763 Allow partial filter expression to us... Closed
is related to SERVER-58359 More flexible query containment for $... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.2, v6.1, v6.0
Sprint: QE 2023-02-06
Participants:
Linked BF Score: 127

 Description   

invariant in GeometryContainer::contains can crush the server when querying a big polygon with a geospatial index. https://github.com/mongodb/mongo/blob/master/src/mongo/db/geo/geometry_container.cpp#L322

 



 Comments   
Comment by Githook User [ 25/Jan/23 ]

Author:

{'name': 'Ivan Fefer', 'email': 'ivan.fefer@mongodb.com', 'username': 'Fefer-Ivan'}

Message: SERVER-73235 Replace invariant with tassert when checking if geometry contains a big polygon
Branch: v6.0
https://github.com/mongodb/mongo/commit/2c00b8f4f31c7ced3e7e26bb9e2a014660169043

Comment by Ivan Fefer [ 24/Jan/23 ]

Requested backports to improve mongosync tests that caused the original failure.

Comment by Githook User [ 24/Jan/23 ]

Author:

{'name': 'Ivan Fefer', 'email': 'ivan.fefer@mongodb.com', 'username': 'Fefer-Ivan'}

Message: SERVER-73235 Replace invariant with tassert when checking if geometry contains a big polygon
Branch: master
https://github.com/mongodb/mongo/commit/4a566bfdb417a366cc6eb480516b028f67febdc2

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