anujmodi2021 commented on code in PR #8043:
URL: https://github.com/apache/hadoop/pull/8043#discussion_r2470582171
##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsApacheHttpClient.java:
##########
@@ -132,6 +138,30 @@ public void close() throws IOException {
* @throws IOException network error.
*/
public HttpResponse execute(HttpRequestBase httpRequest,
+ final AbfsManagedHttpClientContext abfsHttpClientContext,
+ final int connectTimeout,
+ final int readTimeout,
+ final long tailLatencyTimeout) throws IOException {
+ if (tailLatencyTimeout <= 0) {
+ return executeWithoutDeadline(httpRequest, abfsHttpClientContext,
+ connectTimeout, readTimeout);
+ }
+ return executeWithDeadline(httpRequest, abfsHttpClientContext,
+ connectTimeout, readTimeout, tailLatencyTimeout);
+ }
+
+ /**
+ * Executes the HTTP request.
+ *
+ * @param httpRequest HTTP request to execute.
+ * @param abfsHttpClientContext HttpClient context.
+ * @param connectTimeout Connection timeout.
+ * @param readTimeout Read timeout.
+ *
+ * @return HTTP response.
+ * @throws IOException network error.
+ */
+ public HttpResponse executeWithoutDeadline(HttpRequestBase httpRequest,
Review Comment:
Taken
--
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]