forked from prestodb/presto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix excess memory usage in HttpRemoteTask
If an HttpRemoteTask ran for a long time without transitioning to a state where more splits could be queued, and many callers added dependent futures to the CompletableFuture returned from whenSplitQueueHasSpace(), there could be a large amount of memory used by those dependents because they aren't cleaned up. Due to JDK-8161600 there is no way to fix this with CompletableFutures, so the implementation has been changed to use a FutureStateChange.
- Loading branch information
Showing
2 changed files
with
28 additions
and
36 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