saxenapranav commented on code in PR #5711:
URL: https://github.com/apache/hadoop/pull/5711#discussion_r1217866097
##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsRestOperation.java:
##########
@@ -347,7 +347,7 @@ private boolean executeHttpOperation(final int retryCount,
LOG.debug("HttpRequest: {}: {}", operationType, httpOperation);
- if (client.getRetryPolicy().shouldRetry(retryCount,
httpOperation.getStatusCode())) {
+ if (client.getRetryPolicy(failureReason).shouldRetry(retryCount,
httpOperation.getStatusCode())) {
Review Comment:
say you are on retry=1; retry=0 failed becasue of CT. at line 350, you have
failureReason=CT, though you are in retry=1. client.getRetryPolicy() will give
as per CT and not by what has happened on retry=1. But when you go on the loop
and for the thread.sleep, you would sleep as per failure on retry=1.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]