HADOOP-19285. [ABFS] Restore ETAGS_AVAILABLE to abfs path capabilities (#7064)

Caused by HADOOP-19131  

Contributed by: Steve Loughran
This commit is contained in:
Steve Loughran 2024-09-23 18:52:05 +01:00 committed by GitHub
parent fccc268cde
commit 37a74f0692
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(