ChenSammi commented on code in PR #7010:
URL: https://github.com/apache/ozone/pull/7010#discussion_r1708743226
##########
hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/container/replication/TestReplicationManager.java:
##########
@@ -1740,6 +1742,16 @@ public void testInflightReplicationLimit() throws
IOException {
(int) Math.ceil(healthyNodes
* config.getDatanodeReplicationLimit() * 0.75),
rm.getReplicationInFlightLimit());
+
+ String hour =LocalDateTime.now().format(DateTimeFormatter.ofPattern("HH"));
+ config.setInflightOffPeakHour(hour);
+ config.setInflightOffPeakRatio(2);
+ configuration.setFromObject(config);
+ rm = createReplicationManager();
+ assertEquals(
+ (int) Math.ceil(healthyNodes
+ * config.getDatanodeReplicationLimit() * 0.75 * 2),
Review Comment:
The indent used in Ozone is 4 blank spaces. You can set it into Intellij
configuration.
--
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]