You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Enrico Olivelli (Jira)" <ji...@apache.org> on 2024/10/30 08:58:00 UTC

[jira] [Commented] (CASSANDRA-18019) Counter leader may respond success to coordinator even if counter replica response handler failed

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

Enrico Olivelli commented on CASSANDRA-18019:
---------------------------------------------

I am hitting this issue, is any one interested in fixing this problem?

> Counter leader may respond success to coordinator even if counter replica response handler failed
> -------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-18019
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18019
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Feature/Counters
>            Reporter: Zhao Yang
>            Priority: Normal
>
> In {{CounterMutationVerbHandler}}, the counter leader will respond success to coordinator in a {{callback}} which is used to create {{AbstractWriteResponseHandler}} for contacting counter replicas.
> The {{AbstractWriteResponseHandler}} will trigger the {{callback}} in two cases:
>  # when the handler meets consistency level requirement, it's correct to respond success to coordinator.
>  # when the handler failed ({{blockFor + failures > replicas}}), it should respond failure instead of success to coordinator.
> Another issue is that {{AbstractWriteResponseHandler#signal}} can be called multiple times if there are multiple failure responses or if there are more responses than CL requirement in {{DatacenterSyncWriteResponseHandler}}, so `callback` may be called multiple times, eg. multiple counter responses to coordinator, multiple view metrics updates.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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