You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by mt...@apache.org on 2024/09/23 17:53:30 UTC
(hadoop) branch branch-3.4 updated: HADOOP-19285. [ABFS] Restore ETAGS_AVAILABLE to abfs path capabilities (#7064)
This is an automated email from the ASF dual-hosted git repository.
mthakur pushed a commit to branch branch-3.4
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.4 by this push:
new 4b386455214 HADOOP-19285. [ABFS] Restore ETAGS_AVAILABLE to abfs path capabilities (#7064)
4b386455214 is described below
commit 4b386455214c2154d862abcb6cecda5114487a70
Author: Steve Loughran <st...@cloudera.com>
AuthorDate: Mon Sep 23 18:52:05 2024 +0100
HADOOP-19285. [ABFS] Restore ETAGS_AVAILABLE to abfs path capabilities (#7064)
Caused by HADOOP-19131
Contributed by: Steve Loughran
---
.../main/java/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 59a69510909..3f108cba18d 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
@@ -1686,6 +1686,10 @@ public class AzureBlobFileSystem extends FileSystem
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(
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org