jojochuang commented on code in PR #10693:
URL: https://github.com/apache/ozone/pull/10693#discussion_r3573907853
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/replication/ReplicationSupervisor.java:
##########
@@ -304,9 +384,36 @@ public void stop() {
executor.shutdownNow();
}
} catch (InterruptedException ie) {
- // Ignore, we don't really care about the failure.
Thread.currentThread().interrupt();
}
+ if (volumePools != null) {
+ volumePools.shutdownAll();
+ }
+ }
+
+ public ReplicationConfig getReplicationConfig() {
+ return replicationConfig;
+ }
+
+ public void setPerVolumePoolSize(int newSize) {
+ if (volumePools != null) {
+ volumePools.setPoolSize(newSize);
Review Comment:
Follow the same pattern in setReplicationMaxStreams and resize thread pools
by calling resize(state.get())
--
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]