Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.4.0
Description
tpe.setMaximumPoolSize(threadCount); tpe.setCorePoolSize(threadCount);
The above code works when increasing thread pool size, but fails when decreasing it:
java.lang.IllegalArgumentException at java.util.concurrent.ThreadPoolExecutor.setMaximumPoolSize(ThreadPoolExecutor.java:1680) at org.apache.hadoop.ozone.container.replication.ReplicationSupervisor$Builder.lambda$build$1(ReplicationSupervisor.java:164) at org.apache.hadoop.ozone.container.replication.ReplicationSupervisor.nodeStateUpdated(ReplicationSupervisor.java:294)
Core pool size needs to be decreased first to satisfy preconditions.
Attachments
Issue Links
- links to