ibessonov commented on code in PR #7248:
URL: https://github.com/apache/ignite-3/pull/7248#discussion_r2676354256
##########
modules/network/src/integrationTest/java/org/apache/ignite/internal/network/node/ItNodeStalenessAndRestartTest.java:
##########
@@ -59,13 +72,36 @@ void nodeStalenessStatusIsClearedOnRestart() throws
Exception {
);
}
+ @Test
+ @ConfigOverride(name = "ignite.failureHandler.handler.type", value =
"stop")
+ @MuteFailureManagerLogging
+ void staleNodeIsShutDown() throws Exception {
+ IgniteImpl ignite0 = unwrapIgniteImpl(cluster.node(0));
+
+ LogInspector logInspector = new LogInspector(
+ FailureManager.class.getName(),
+ evt -> evt.getLevel() == Level.ERROR
+ &&
evt.getMessage().getFormattedMessage().contains(FAILURE_MESSAGE)
+ &&
Thread.currentThread().getName().contains(cluster.nodeName(1))
+ );
+
+ logInspector.start();
+ try {
+ simulateNetworkPartition(ignite0);
+
+ await().timeout(10, SECONDS).until(logInspector::isMatched);
Review Comment:
Could you please elaborate? I don't think I know how to check that a node
has actually been stopped, unfortunately
--
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]