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

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

Commit acf39ac301197a7be5df1b27ddf0a60aa6fc876d in geode's branch 
refs/heads/release/1.9.0 from Helena Bales
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=acf39ac ]

GEODE-6440: synchronize when getting and setting (#3220)

Synchronize on getting and setting stats to avoid a race condition that
could occur when multiple threads were trying to set gauge stats.

Signed-off-by: Jacob Barrett <[email protected]>
(cherry picked from commit ca41a5c32a317bbff672d76c4038f731746d6ffb)


> race condition in StripedStatisticsImpl sets and gets
> -----------------------------------------------------
>
>                 Key: GEODE-6440
>                 URL: https://issues.apache.org/jira/browse/GEODE-6440
>             Project: Geode
>          Issue Type: Bug
>    Affects Versions: 1.9.0, 1.10.0
>            Reporter: Helena Bales
>            Assignee: Helena Bales
>            Priority: Major
>             Fix For: 1.9.0, 1.10.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> A race condition exists in {{StripedStatisticsImpl}} when used for gauge 
> statistics that can cause gets to read partial updates. Calling {{set}} 
> concurrently could result in multiple cells containing the set value, when 
> only one cell should have a value, or none of the cells containing the new 
> value when read by {{get}}.



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

Reply via email to