geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GEODE-6440) race condition in StripedStatisticsImpl sets and gets
Date Fri, 22 Feb 2019 18:16:00 GMT

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

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

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

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 <jbarrett@pivotal.io>

> 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
>          Time Spent: 0.5h
>  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)

Mime
View raw message