You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2023/05/05 19:20:00 UTC

[jira] [Updated] (HDDS-8554) Thread pool size needs to be decreased in different order in ReplicationSupervisor

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

Attila Doroszlai updated HDDS-8554:
-----------------------------------
    Description: 
{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.

  was:
{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}


> 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: Bug
>          Components: Ozone Datanode
>    Affects Versions: 1.4.0
>            Reporter: Attila Doroszlai
>            Assignee: Attila Doroszlai
>            Priority: Major
>
> {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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org