You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Francisco Guerrero (Jira)" <ji...@apache.org> on 2024/12/22 23:28:00 UTC
[jira] [Commented] (CASSSIDECAR-182) Refactor access to delegate methods to simplify
[ https://issues.apache.org/jira/browse/CASSSIDECAR-182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17907728#comment-17907728 ]
Francisco Guerrero commented on CASSSIDECAR-182:
------------------------------------------------
PR: https://github.com/apache/cassandra-sidecar/pull/168
CI: https://app.circleci.com/pipelines/github/frankgh/cassandra-sidecar?branch=CASSSIDECAR-182
> Refactor access to delegate methods to simplify
> -----------------------------------------------
>
> Key: CASSSIDECAR-182
> URL: https://issues.apache.org/jira/browse/CASSSIDECAR-182
> Project: Sidecar for Apache Cassandra
> Issue Type: Improvement
> Components: Rest API
> Reporter: Francisco Guerrero
> Assignee: Francisco Guerrero
> Priority: Normal
> Fix For: 1.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Currently, many handlers perform a delegate null check, retrieve an operation interface from the delegate when non-null, and then perform a null check for the operation. When any of the checks returns null, we return a {{cassandraServiceUnavailable}} exception. We can simplify the checks by providing a utility method that all handlers can reuse.
--
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