dcapwell commented on code in PR #2660:
URL: https://github.com/apache/cassandra/pull/2660#discussion_r1332069511
##########
src/java/org/apache/cassandra/repair/state/ParticipateState.java:
##########
@@ -59,10 +64,30 @@ public ParticipateState(InetAddressAndPort initiator,
PrepareMessage msg)
public boolean register(ValidationState state)
{
+ maybeUpdateState(State.VALIDATION);
ValidationState current = validations.putIfAbsent(state.id, state);
return current == null;
}
+ @Nullable
+ public ValidationState validation(UUID id)
+ {
+ return validations.get(id);
+ }
+
+ public boolean register(SyncState state)
+ {
+ maybeUpdateState(State.SYNC);
Review Comment:
yeah, I rushed a refactor and that broke tests, I just pushed a fix that
makes this nested
```
jobs:
desc:
validation: state
syncs: map<id, state>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]