Skip to content

Commit 4b38645

Browse files
steveloughranmukund-thakur
authored andcommitted
HADOOP-19285. [ABFS] Restore ETAGS_AVAILABLE to abfs path capabilities (#7064)
Caused by HADOOP-19131 Contributed by: Steve Loughran
1 parent e268d01 commit 4b38645

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystem.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,6 +1686,10 @@ public boolean hasPathCapability(final Path path, final String capability)
16861686
case CommonPathCapabilities.VIRTUAL_BLOCK_LOCATIONS:
16871687
return true;
16881688

1689+
// etags are always available on HEAD requests.
1690+
case CommonPathCapabilities.ETAGS_AVAILABLE:
1691+
return true;
1692+
// but etags are only preserved on hns stores.
16891693
case CommonPathCapabilities.ETAGS_PRESERVED_IN_RENAME:
16901694
case CommonPathCapabilities.FS_ACLS:
16911695
return getIsNamespaceEnabled(

0 commit comments

Comments
 (0)