maobaolong created HDDS-3994: -------------------------------- Summary: 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: Improvement Components: Ozone Client Affects Versions: 0.6.0 Reporter: maobaolong Assignee: maobaolong
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-unsubscr...@hadoop.apache.org For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org