-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add extra information on memory pool leaks
When we notice that at the there is memory leak from DistributedQueryRunner after finishing up tests we print extra information regarding memory pool and queries from the cluster, so it is easier to pinpoint the problem in code. Example output: ``` java.lang.AssertionError: Expected memory reservation on server_0(worker)to be 0 but was 5663866; detailed memory usage: 20220304_183721_00001_2dtqj: SQL: SELECT count(*) FROM tpch.tiny.customer memoryReservation: 7428 taggedMemoryReservaton: {AggregationOperator=408, ExchangeOperator=5184, LazyOutputBuffer=1836} 20220304_183726_00029_2dtqj: SQL: SELECT TIMESTAMP '2017-01-02 09:12:34.123456789 Europe/Paris' memoryReservation: 113 taggedMemoryReservaton: {LazyOutputBuffer=113} ```
- Loading branch information
Showing
2 changed files
with
51 additions
and
5 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
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