From 37a74f06921b1b1c927f0315957bba2704427265 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Mon, 23 Sep 2024 18:52:05 +0100 Subject: [PATCH] HADOOP-19285. [ABFS] Restore ETAGS_AVAILABLE to abfs path capabilities (#7064) Caused by HADOOP-19131 Contributed by: Steve Loughran --- .../org/apache/hadoop/fs/azurebfs/AzureBlobFileSystem.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystem.java b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystem.java index cf6b49dcde..a041f3a618 100644 --- a/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystem.java +++ b/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystem.java @@ -1742,6 +1742,10 @@ public boolean hasPathCapability(final Path path, final String capability) case CommonPathCapabilities.VIRTUAL_BLOCK_LOCATIONS: return true; + // etags are always available on HEAD requests. + case CommonPathCapabilities.ETAGS_AVAILABLE: + return true; + // but etags are only preserved on hns stores. case CommonPathCapabilities.ETAGS_PRESERVED_IN_RENAME: case CommonPathCapabilities.FS_ACLS: return getIsNamespaceEnabled(