You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "maobaolong (Jira)" <ji...@apache.org> on 2020/07/21 02:38:00 UTC

[jira] [Updated] (HDDS-3994) Write object when met exception can be slower than before

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

maobaolong updated HDDS-3994:
-----------------------------
    Issue Type: Bug  (was: Improvement)

> Write object when met exception can be slower than before
> ---------------------------------------------------------
>
>                 Key: HDDS-3994
>                 URL: https://issues.apache.org/jira/browse/HDDS-3994
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Ozone Client
>    Affects Versions: 0.6.0
>            Reporter: maobaolong
>            Assignee: maobaolong
>            Priority: Major
>
> After HDDS-3350 , the retry policy changed, and the client write performance getting lower than before.
>  
> With HDDS-3350, I restore the method RatisHelper#createRetryPolicy to the previous commit, it works well.
>  
> The previous is 
>  
> {code:java}
> static RetryPolicy createRetryPolicy(ConfigurationSource conf) {
>     int maxRetryCount =
>         conf.getInt(OzoneConfigKeys.DFS_RATIS_CLIENT_REQUEST_MAX_RETRIES_KEY,
>             OzoneConfigKeys.
>                 DFS_RATIS_CLIENT_REQUEST_MAX_RETRIES_DEFAULT);
>     long retryInterval = conf.getTimeDuration(OzoneConfigKeys.
>         DFS_RATIS_CLIENT_REQUEST_RETRY_INTERVAL_KEY, OzoneConfigKeys.
>         DFS_RATIS_CLIENT_REQUEST_RETRY_INTERVAL_DEFAULT
>         .toIntExact(TimeUnit.MILLISECONDS), TimeUnit.MILLISECONDS);
>     TimeDuration sleepDuration =
>         TimeDuration.valueOf(retryInterval, TimeUnit.MILLISECONDS);
>     RetryPolicy retryPolicy = RetryPolicies
>         .retryUpToMaximumCountWithFixedSleep(maxRetryCount, sleepDuration);
>     return retryPolicy;
>   }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org