nandakumar131 commented on a change in pull request #852: HDDS-1454. GC other
system pause events can trigger pipeline destroy for all the nodes in the
cluster. Contributed by Supratim Deka
URL: https://github.com/apache/hadoop/pull/852#discussion_r295335626
##########
File path:
hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/node/TestSCMNodeManager.java
##########
@@ -339,6 +341,96 @@ public void testScmDetectStaleAndDeadNode()
}
}
+ /**
+ * Simulate a JVM Pause by pausing the health check process
+ * Ensure that none of the nodes with heartbeats become Dead or Stale.
+ * @throws IOException
+ * @throws InterruptedException
+ * @throws AuthenticationException
+ */
+ @Test
+ public void testScmHandleJvmPause()
+ throws IOException, InterruptedException, AuthenticationException {
+ final int healthCheckInterval = 200; // milliseconds
+ final int heartbeatInterval = 1; // seconds
+ final int staleNodeInterval = 3; // seconds
+ final int deadNodeInterval = 6; // seconds
+ ScheduledFuture schedFuture;
Review comment:
I thought `schedFuture` was a typo :)
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]