You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by Jason Huynh <jh...@pivotal.io> on 2016/12/02 21:47:39 UTC
Review Request 54323: GEODE-2163: CqService.serverCqNameCache does
not get cleaned up, possible memory leak
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/54323/
-----------------------------------------------------------
Review request for geode and Dan Smith.
Repository: geode
Description
-------
Removing from the map when a cq is closed
Did not protect this map because "misses" or missing entries will just be added next lookup.
Diffs
-----
geode-cq/src/main/java/org/apache/geode/cache/query/internal/cq/CqServiceImpl.java 1414e90
geode-cq/src/test/java/org/apache/geode/cache/query/internal/cq/CqServiceUnitTest.java PRE-CREATION
Diff: https://reviews.apache.org/r/54323/diff/
Testing
-------
Thanks,
Jason Huynh
Re: Review Request 54323: GEODE-2163: CqService.serverCqNameCache
does not get cleaned up, possible memory leak
Posted by Dan Smith <ds...@pivotal.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/54323/#review157854
-----------------------------------------------------------
Fix it, then Ship it!
geode-cq/src/main/java/org/apache/geode/cache/query/internal/cq/CqServiceImpl.java (line 1058)
<https://reviews.apache.org/r/54323/#comment228466>
I think this could use computeIfAbsent rather than get followed by putIfAbsent.
- Dan Smith
On Dec. 2, 2016, 9:47 p.m., Jason Huynh wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/54323/
> -----------------------------------------------------------
>
> (Updated Dec. 2, 2016, 9:47 p.m.)
>
>
> Review request for geode and Dan Smith.
>
>
> Repository: geode
>
>
> Description
> -------
>
> Removing from the map when a cq is closed
> Did not protect this map because "misses" or missing entries will just be added next lookup.
>
>
> Diffs
> -----
>
> geode-cq/src/main/java/org/apache/geode/cache/query/internal/cq/CqServiceImpl.java 1414e90
> geode-cq/src/test/java/org/apache/geode/cache/query/internal/cq/CqServiceUnitTest.java PRE-CREATION
>
> Diff: https://reviews.apache.org/r/54323/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Jason Huynh
>
>