forked from hazelcast/hazelcast
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The workQueue inside LoggingScheduledExecutor contains wrapped futures of scheduled tasks. This is because we decorate tasks in LoggingScheduledExecutor.decorateTask. When we were cancelling the task, we delegated cancellation to the delegate which tries to remove itself from the workQueue. The workQueue though doesn't contain the delegate but rather contains the decorated delegate. This causes the remove to fail without any message and causes the leak. To fix this, after we call cancel() on the delegate, we manually remove the decorator from the workQueue. Fixes : hazelcast#11221
- Loading branch information
Matko Medenjak
committed
Aug 28, 2017
1 parent
53f1d38
commit 24a06fa
Showing
2 changed files
with
33 additions
and
4 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