cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caleb Rackliffe (Jira)" <j...@apache.org>
Subject [jira] [Comment Edited] (CASSANDRA-16721) Repaired data tracking on a read coordinator is susceptible to races between local and remote requests
Date Tue, 17 Aug 2021 04:37:00 GMT

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

Caleb Rackliffe edited comment on CASSANDRA-16721 at 8/17/21, 4:36 AM:
-----------------------------------------------------------------------

I took a stab at it [here|https://github.com/apache/cassandra/pull/1149]. (There are still
a few TODOs lying around.) Let's see if I [broke|https://app.circleci.com/pipelines/github/maedhroz/cassandra?branch=CASSANDRA-16721-local-rdi]
anything...


was (Author: maedhroz):
I took a stab at it [here|https://github.com/apache/cassandra/pull/1149]. Let's see if I [broke|https://app.circleci.com/pipelines/github/maedhroz/cassandra?branch=CASSANDRA-16721-local-rdi]
anything...

> Repaired data tracking on a read coordinator is susceptible to races between local and
remote requests
> ------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-16721
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16721
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Consistency/Coordination
>            Reporter: Sam Tunnicliffe
>            Assignee: Sam Tunnicliffe
>            Priority: Normal
>             Fix For: 4.0.x
>
>
> At read time on a coordinator which is also a replica, the local and remote reads can
race such that the remote responses are received while the local read is executing. If the
remote responses are mismatching, triggering a {{DigestMismatchException}} and subsequent
round of full data reads and read repair, the local runnable may find the {{isTrackingRepairedStatus}}
flag flipped mid-execution.  If this happens after a certain point in execution, it would
mean
> that the RepairedDataInfo instance in use is the singleton null object {{RepairedDataInfo.NULL_REPAIRED_DATA_INFO}}.
If this happens, it can lead to an NPE when calling {{RepairedDataInfo::extend}} when the
local results are iterated.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message