[
https://issues.apache.org/jira/browse/HADOOP-19448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17924473#comment-17924473
]
ASF GitHub Bot commented on HADOOP-19448:
-----------------------------------------
anmolanmol1234 commented on code in PR #7353:
URL: https://github.com/apache/hadoop/pull/7353#discussion_r1944495900
##########
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAzureBlobFileSystemCreate.java:
##########
@@ -666,6 +734,127 @@ public void
testNegativeScenariosForCreateOverwriteDisabled()
validateCreateFileException(AbfsRestOperationException.class, abfsStore);
}
+ /**
+ * Tests that the exception thrown during the creation of a marker is
swallowed.
+ * This test verifies that when an exception occurs during the creation of a
marker,
+ * it does not propagate and is handled internally and file creation still
succeeds.
+ *
+ * @throws Throwable if an error occurs during the test execution
+ */
+ @Test
+ public void testCreateMarkerFailExceptionIsSwallowed()
+ throws Throwable {
+
+ final AzureBlobFileSystem currentFs = getFileSystem();
+ Configuration config = new Configuration(this.getRawConfiguration());
+ config.set("fs.azure.enable.conditional.create.overwrite",
+ Boolean.toString(true));
+
+ final AzureBlobFileSystem fs =
+ (AzureBlobFileSystem) FileSystem.newInstance(currentFs.getUri(),
+ config);
+
+ // Get mock AbfsClient with current config
+ AbfsClient mockClient = Mockito.spy(fs.getAbfsClient());
+ AzureBlobFileSystemStore spiedStore = Mockito.spy(fs.getAbfsStore());
+ spiedStore.setClient(mockClient);
+
+ Assume.assumeTrue(mockClient instanceof AbfsBlobClient);
Review Comment:
taken
> 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]