[
https://issues.apache.org/jira/browse/CASSSIDECAR-182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17908991#comment-17908991
]
Francisco Guerrero commented on CASSSIDECAR-182:
------------------------------------------------
CI is green:
https://app.circleci.com/pipelines/github/frankgh/cassandra-sidecar/563/workflows/1287ecd2-68a5-4e56-b01a-060b5c1f796f
> 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: 20m
> 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: [email protected]
For additional commands, e-mail: [email protected]