[ 
https://issues.apache.org/jira/browse/GEODE-5292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16545630#comment-16545630
 ] 

ASF subversion and git services commented on GEODE-5292:
--------------------------------------------------------

Commit f6c26f0a30b27d2636c9f8d43c089332ccd50150 in geode's branch 
refs/heads/develop from Dan Smith
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=f6c26f0 ]

 GEODE-5292: Flushing to disk in test before introducing spy in test (#2140)

This test was modifying the concurrent region map to introduce a spy,
but there was a concurrent thread overflowing entries to disk at the
same time. An interaction between the spy and the async flush caused the
ref count to go to 0, and the test to fail before it even got to the
point of clearing the region.

Flushing the disk before introducing the spy.


> Replace with concurrent clear and destroy leaks off heap memory
> ---------------------------------------------------------------
>
>                 Key: GEODE-5292
>                 URL: https://issues.apache.org/jira/browse/GEODE-5292
>             Project: Geode
>          Issue Type: Bug
>          Components: regions
>            Reporter: Dan Smith
>            Assignee: Dan Smith
>            Priority: Major
>              Labels: pull-request-available, swat
>             Fix For: 1.8.0
>
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> For a region that has been configured with off-heap storage and overflow to 
> disk, memory can be leaked if
>  * region clear
>  * region destroy 
>  * region replace
> all happen concurrently. The root cause appears to be region clear modifying 
> entries for values stored on disk without synchronizing the entries. This 
> prevents replace from freeing the off-heap memory for the new value when the 
> replace fails because the region is being destroyed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to