You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "aratno (via GitHub)" <gi...@apache.org> on 2023/11/09 22:50:27 UTC

Re: [PR] Remove completed coordinator sessions [cassandra]

aratno commented on code in PR #2813:
URL: https://github.com/apache/cassandra/pull/2813#discussion_r1388669029


##########
test/distributed/org/apache/cassandra/distributed/test/IncRepairCoordinatorErrorTest.java:
##########
@@ -51,7 +51,7 @@ public void errorTest() throws Exception
             cluster.get(3).runOnInstance(() -> {
                 ActiveRepairService.instance.failSession(result.toString(), true);
             });
-            assertThat(cluster.get(1).logs().watchFor("Can't transition endpoints .* to FAILED").getResult()).isNotEmpty();
+            assertThat(cluster.get(1).logs().watchFor("Removing completed session .* with state FINALIZED").getResult()).isNotEmpty();

Review Comment:
   Talked about this with Caleb - I actually prefer the logs check because it's more explicit than "nothing found in map" - it confirms that the specific action (removal from `ARS.consistent.coordinated`) was taken, rather than the more generic "no data found".



-- 
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: pr-unsubscribe@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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