[ 
https://issues.apache.org/jira/browse/HDDS-8554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Attila Doroszlai updated HDDS-8554:
-----------------------------------
        Parent: HDDS-7759
    Issue Type: Sub-task  (was: Bug)

> Thread pool size needs to be decreased in different order in 
> ReplicationSupervisor
> ----------------------------------------------------------------------------------
>
>                 Key: HDDS-8554
>                 URL: https://issues.apache.org/jira/browse/HDDS-8554
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: Ozone Datanode
>    Affects Versions: 1.4.0
>            Reporter: Attila Doroszlai
>            Assignee: Attila Doroszlai
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.4.0
>
>
> {code:title=https://github.com/apache/ozone/blob/a455597815a4a12ded9479f334780a83116a2123/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/replication/ReplicationSupervisor.java#L164-L165}
>           tpe.setMaximumPoolSize(threadCount);
>           tpe.setCorePoolSize(threadCount);
> {code}
> The above code works when increasing thread pool size, but fails when 
> decreasing it:
> {code}
> 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)
> {code}
> Core pool size needs to be decreased first to satisfy preconditions.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to