cassandra-pr mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cassandra] jasonstack commented on a change in pull request #446: CASSANDRA-15564 Refactor repair coordinator to centralize stage change logic and improved the public facing errors
Date Tue, 10 Mar 2020 05:46:45 GMT
jasonstack commented on a change in pull request #446: CASSANDRA-15564 Refactor repair coordinator
to centralize stage change logic and improved the public facing errors
URL: https://github.com/apache/cassandra/pull/446#discussion_r390106009
 
 

 ##########
 File path: src/java/org/apache/cassandra/service/ActiveRepairService.java
 ##########
 @@ -525,6 +525,20 @@ public synchronized ParentRepairSession removeParentRepairSession(UUID
parentSes
         return parentRepairSessions.remove(parentSessionId);
     }
 
+    public synchronized ParentRepairSession removeParentRepairSessionIfPresent(UUID parentSessionId)
 
 Review comment:
   this method looks very similar to `removeParentRepairSession`.. should we refactor it?
   
   alternatively, we can change `removeParentRepairSession` to gracefully handle non-existing
parent session.. there is no point throw NPE if parent session is already gone..

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


Mime
View raw message