Skip to content

Commit

Permalink
Close CacheDecayTask when FrozenCacheService is closed (#71693) (#71724)
Browse files Browse the repository at this point in the history
CacheDecayTask is scheduled when the FrozenCacheService
is instantiated but it should also be closed accordingly when
the service is closed.

Backport of #71693
  • Loading branch information
tlrx committed Apr 15, 2021
1 parent 425ed4c commit 69602f3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ int getFreq(CacheFileRegion cacheFileRegion) {
@Override
public void close() {
sharedBytes.decRef();
decayTask.close();
}

class CacheDecayTask extends AbstractAsyncTask {
Expand Down

0 comments on commit 69602f3

Please sign in to comment.