-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory accounting in InMemoryHashAggregationBuilder
InMemoryHashAggregationBuilder when used by SpillableHashAggregationBuilder while processing input should be spillable and part of revocable memory. The same instance is invoked while producing output by spillable accumulators like: DedupBasedSpillableDistinctGroupedAccumulator (GenericAccumulatorFactory.java#L401). While producing the output, the memory should be accounted as part of user memory and is non-revocable. In previous implementation, rehash in GroupByHash will cause all memory be accounted to user memory, including preallocatedMemoryInBytes for rehash. It maybe lead some queries to fail, although they could exe successfully, especially in a low "query.max-memory-per-node" configuration environment.
- Loading branch information
1 parent
2a77f69
commit 3ab3e09
Showing
6 changed files
with
151 additions
and
22 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
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
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