ishaniahuja commented on a change in pull request #1790: [HADOOP-16818] ABFS:
Combine append+flush calls for blockblob & appendblob
URL: https://github.com/apache/hadoop/pull/1790#discussion_r389527177
##########
File path:
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAzureBlobFileSystemE2E.java
##########
@@ -209,9 +209,10 @@ public void testFlushWithFileNotFoundException() throws
Exception {
fs.delete(testFilePath, true);
assertFalse(fs.exists(testFilePath));
+ AbfsConfiguration configuration = this.getConfiguration();
- intercept(FileNotFoundException.class,
- () -> stream.close());
+ //With the new code, it would not trigger a call to the backend
Review comment:
I updated the comment with more details. You can also look at the code to
understand the behavior. AbfsOutputStream close(). Yes I have tested the
different configurations (appendblob, blockblob, append+flush enabled,
append+flush disabled, with and without namespace disabled account.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]