Skip to content

Commit 37a74f0

Browse files
HADOOP-19285. [ABFS] Restore ETAGS_AVAILABLE to abfs path capabilities (#7064)
Caused by HADOOP-19131 Contributed by: Steve Loughran
1 parent fccc268 commit 37a74f0

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
@@ -1742,6 +1742,10 @@ public boolean hasPathCapability(final Path path, final String capability)
17421742
case CommonPathCapabilities.VIRTUAL_BLOCK_LOCATIONS:
17431743
return true;
17441744

1745+
// etags are always available on HEAD requests.
1746+
case CommonPathCapabilities.ETAGS_AVAILABLE:
1747+
return true;
1748+
// but etags are only preserved on hns stores.
17451749
case CommonPathCapabilities.ETAGS_PRESERVED_IN_RENAME:
17461750
case CommonPathCapabilities.FS_ACLS:
17471751
return getIsNamespaceEnabled(

0 commit comments

Comments
 (0)