HADOOP-19285. [ABFS] Restore ETAGS_AVAILABLE to abfs path capabilities (#7064)
Caused by HADOOP-19131 Contributed by: Steve Loughran
This commit is contained in:
parent
fccc268cde
commit
37a74f0692
@ -1742,6 +1742,10 @@ public boolean hasPathCapability(final Path path, final String capability)
|
|||||||
case CommonPathCapabilities.VIRTUAL_BLOCK_LOCATIONS:
|
case CommonPathCapabilities.VIRTUAL_BLOCK_LOCATIONS:
|
||||||
return true;
|
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.ETAGS_PRESERVED_IN_RENAME:
|
||||||
case CommonPathCapabilities.FS_ACLS:
|
case CommonPathCapabilities.FS_ACLS:
|
||||||
return getIsNamespaceEnabled(
|
return getIsNamespaceEnabled(
|
||||||
|
Loading…
Reference in New Issue
Block a user