-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: adjust a couple of memory monitoring tests
This commit adjusts a couple of memory monitoring related tests. `TestAggregatesMonitorMemory` has been rewritten to use the `distsql_workmem` limit (rather than small "global" `--max-sql-memory` which can be too small). The caveat here is that currently the ordered aggregator as well as some aggregate builtin functions don't respect the workmem limit, so for now all test queries are commented out effectively skipping the test. `TestEvaluatedMemoryIsChecked` is just straight up removed. Initially, this test was expected to verify that builtin functions like `repeat` perform memory accounting of the intermediate result via our memory accounting system. However, that changed long time ago in 2b00f15 and now such builtins estimate their result size and return `errStringTooLarge` error, so the test was no longer verifying what it intended. This commit removes this test since we do verify the behavior introduced in 2b00f15 elsewhere (in the logic tests). Release note: None
- Loading branch information
1 parent
a4012ba
commit 5a8e6db
Showing
1 changed file
with
29 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters