You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/07/11 18:00:00 UTC
[jira] [Commented] (GEODE-5557) enabling read conflict detection
may cause transactions to fail with a conflict on entries that are never
written
[ https://issues.apache.org/jira/browse/GEODE-5557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16883225#comment-16883225 ]
ASF subversion and git services commented on GEODE-5557:
--------------------------------------------------------
Commit aa9893e81f921fe382d8ef59d56f26f9d73fb084 in geode's branch refs/heads/develop from mivanac
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=aa9893e ]
GEODE-5557: Fix for false read conflict exception (#3492)
* Use HashMap instead of HashSet in TXRegionLockRequestImpl so that read and write lock held can be distinguished.
* Use boolean value to indicate a key is read locked by a read operation when detectReadConflicts is enabled.
> enabling read conflict detection may cause transactions to fail with a conflict on entries that are never written
> -----------------------------------------------------------------------------------------------------------------
>
> Key: GEODE-5557
> URL: https://issues.apache.org/jira/browse/GEODE-5557
> Project: Geode
> Issue Type: Bug
> Components: transactions
> Affects Versions: 1.0.0-incubating
> Reporter: Darrel Schneider
> Assignee: Mario Ivanac
> Priority: Major
> Labels: SmallFeature, needs-review, pull-request-available
> Fix For: 1.10.0
>
> Time Spent: 4h 10m
> Remaining Estimate: 0h
>
> Read conflict detection can be enabled with -Dgemfire.detectReadConflicts=true.
> If this is done then a transaction can fail because it read an entry that some one else modified.
> But it is possible that this feature will cause your transaction to fail because some other transaction read an entry that you read or wrote. These are not valid conflicts.
> This bug is caused by the way TXReservationMgr checks for conflicts. It treats every key sent to it as if it was written and when read confliction detection is enabled keys we only read are sent to it.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)