[ 
https://issues.apache.org/jira/browse/HADOOP-19448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17924442#comment-17924442
 ] 

ASF GitHub Bot commented on HADOOP-19448:
-----------------------------------------

anujmodi2021 commented on code in PR #7353:
URL: https://github.com/apache/hadoop/pull/7353#discussion_r1944345240


##########
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/AbstractAbfsIntegrationTest.java:
##########
@@ -700,4 +703,34 @@ protected void assertPathDns(Path path) {
         .describedAs("Path does not contain expected DNS")
         .contains(expectedDns);
   }
+
+  /**
+   * Checks a list of futures for exceptions.
+   *
+   * This method iterates over a list of futures, waits for each task to 
complete,
+   * and handles any exceptions thrown by the lambda expressions. If a
+   * RuntimeException is caught, it increments the exceptionCaught counter.
+   * If an unexpected exception is caught, it prints the exception to the 
standard error.
+   * Finally, it asserts that no RuntimeExceptions were caught.
+   *
+   * @param futures The list of futures to check for exceptions.
+   */
+  public void checkFuturesForExceptions(List<Future<?>> futures, int 
exceptionVal) {

Review Comment:
   Should be protected?





> ABFS: [FnsOverBlob][Optimizations] Reduce Network Calls In Create and Mkdir 
> Flow
> --------------------------------------------------------------------------------
>
>                 Key: HADOOP-19448
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19448
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/azure
>    Affects Versions: 3.4.2
>            Reporter: Anuj Modi
>            Assignee: Anmol Asrani
>            Priority: Major
>              Labels: pull-request-available
>
> Implementing Create and Mkdir file system APIs for FNS(HNS Disabled) accounts 
> on Blob Endpoint involves a lot of checks and marker file creations to handle 
> implicit explicit cases of paths involved in these APIs.
> This Jira proposes a few optimizations to reduce the network calls wherever 
> possible and in case where create/mkdir is bound to fail, it should fail 
> faster before doing any post checks,



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to