[SERVER-62509] Write tests to stress ABT and Bonsai Created: 11/Jan/22  Updated: 29/Oct/23  Resolved: 15/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Drew Paroski Assignee: Militsa Sotirova
Resolution: Fixed Votes: 0
Labels: auto-reverted, cascades-starter, testing
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Related
related to SERVER-79161 Deeply nested queries can segfault ex... Closed
related to SERVER-79393 Expression parameterization input par... Closed
is related to SERVER-78477 Long aggregation pipelines can segfau... Closed
is related to SERVER-62844 Manually measure perf of how ABT hand... Closed
is related to SERVER-78353 [CQF] Investigate reference tracker s... Closed
is related to SERVER-79092 Optimize the expression search for pa... Closed
is related to SERVER-78480 Avoid unnecessary string copies in Nu... Closed
is related to SERVER-78580 Improve $project parsing to avoid qua... Closed
is related to SERVER-78587 Improve VM logicAnd/Or compileDirect ... Closed
is related to SERVER-78631 [CQF] Replace linear search in BoolEx... Closed
is related to SERVER-78635 [CQF] Refactor PartialSchemaReqConver... Closed
Assigned Teams:
Query Optimization
Backwards Compatibility: Fully Compatible
Sprint: QO 2023-06-12, QO 2023-06-26, QO 2023-07-10, QO 2023-07-24, QO 2023-08-07, QO 2023-08-21
Participants:
Linked BF Score: 147

 Description   

The goal of this task is to write tests for the new optimizer involving $and/$or with hundreds or thousands of arguments.

The intention of these tests is to stress the ABT and to ensure that nothing stack overflows while the ABT is being generated, when the ABT is lowered to SBE, or when the SBE plan is executed.



 Comments   
Comment by Githook User [ 15/Aug/23 ]

Author:

{'name': 'Militsa Sotirova', 'email': 'militsa.sotirova@mongodb.com', 'username': 'militsasotirova'}

Message: SERVER-62509 Tests ABT for queries with thousands of args

Co-authored-by: matt.boros@mongodb.com
Branch: master
https://github.com/mongodb/mongo/commit/5f9ff88131f03e1ce4acc74474c9b7da32aad5b7

Comment by Githook User [ 20/Jul/23 ]

Author:

{'name': 'Matt Boros', 'email': 'matt.boros@mongodb.com', 'username': 'mattBoros'}

Message: Revert "SERVER-62509 Tests ABT for queries with thousands of args"

This reverts commit f790ca5484659d710f03e65dbc426c18ea513bc9.
Branch: master
https://github.com/mongodb/mongo/commit/6b3cbd8b46a0fdcbfbffb4ecd7364b52a1ad2fcd

Comment by Githook User [ 17/Jul/23 ]

Author:

{'name': 'Matt Boros', 'email': 'matt.boros@mongodb.com', 'username': 'mattBoros'}

Message: SERVER-62509 Tests ABT for queries with thousands of args
Branch: master
https://github.com/mongodb/mongo/commit/f790ca5484659d710f03e65dbc426c18ea513bc9

Comment by xgen-buildbaron-user [ 12/Jul/23 ]

Ticket re-opened due to revert. aggregation_auth began a consistent failure of jstests/aggregation/query_limits_test.js

Comment by Githook User [ 12/Jul/23 ]

Author:

{'name': 'auto-revert-processor', 'email': 'dev-prod-dag@mongodb.com', 'username': ''}

Message: Revert "SERVER-62509 Tests ABT for queries with thousands of args"

This reverts commit 6b5cd2cbdceb4d28283f80f85cd2f2ad4683399b.
Branch: master
https://github.com/mongodb/mongo/commit/cd8d653f0a19be9d66b3297670dfe3885a3c85ef

Comment by Githook User [ 11/Jul/23 ]

Author:

{'name': 'Matt Boros', 'email': 'matt.boros@mongodb.com', 'username': 'mattBoros'}

Message: SERVER-62509 Tests ABT for queries with thousands of args
Branch: master
https://github.com/mongodb/mongo/commit/6b5cd2cbdceb4d28283f80f85cd2f2ad4683399b

Comment by Matt Boros [ 30/Jun/23 ]

Here is an update on this ticket.

Comment by Matt Boros [ 02/Jun/23 ]

I can answer David's question about the largest $and as I work on this.

Comment by Ted Tuckman [ 21/Dec/22 ]

Per Svilen's comment this likely belongs in a different project (other than lowering). Putting back up for triage.

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