You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Zhao Yang (Jira)" <ji...@apache.org> on 2022/11/07 14:07:00 UTC

[jira] [Updated] (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:all-tabpanel ]

Zhao Yang updated CASSANDRA-18019:
----------------------------------
    Description: 
In {{CounterMutationVerbHandler}}, it 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 local coordinator.
 # when the handler failed ({{blockFor + failures > replicas}}), it should respond failure instead of success to local coordinator.

  was:
In {{CounterMutationVerbHandler}}, it will respond success to local 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 local coordinator.
 # when the handler failed ({{blockFor + failures > replicas}}), it should respond failure instead of success to local coordinator.


> 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}}, it 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 local coordinator.
>  # when the handler failed ({{blockFor + failures > replicas}}), it should respond failure instead of success to local coordinator.



--
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