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

David Capwell commented on CASSANDRA-15564:
-------------------------------------------

bq. I'm wondering whether we should stick to runInbound in builder, or we 
should switch to `filters().inbound()` or something similar, where `filters()` 
would return some interface that has `inbound` and `outbound`. This could even 
leave most of the things more or less same implementation-wise.

Oh I think you mean

org.apache.cassandra.distributed.api.IMessageFilters should have a 
inbound/outbound method which returns a builder.  Do we still have those 
methods on the builder?  If so I could do the following

{code}
Builder inbound(boolean inbound);
    default Builder inbound() {
        return inbound(true);
    }
    default Builder outbound() {
        return inbound(false);
    }
    default Builder verbs(int... verbs) {
        return inbound().verbs(verbs);
    }
    default Builder allVerbs() {
        return inbound().allVerbs();
    }
{code}

> Refactor repair coordinator so errors are consistent
> ----------------------------------------------------
>
>                 Key: CASSANDRA-15564
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15564
>             Project: Cassandra
>          Issue Type: Sub-task
>          Components: Consistency/Repair
>            Reporter: David Capwell
>            Assignee: David Capwell
>            Priority: Normal
>              Labels: pull-request-available
>          Time Spent: 16.5h
>  Remaining Estimate: 0h
>
> This is to split the change in CASSANDRA-15399 so the refactor is isolated 
> out.
> Currently the repair coordinator special cases the exit cases at each call 
> site; this makes it so that errors can be inconsistent and there are cases 
> where proper complete isn't done (proper notifications, and forgetting to 
> update ActiveRepairService).
> [Circle 
> CI|https://circleci.com/gh/dcapwell/cassandra/tree/bug%2FrepairCoordinatorJmxConsistency]



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to