jeeteshm commented on a change in pull request #1611: HADOOP-16612 Track Azure
Blob File System client-perceived latency
URL: https://github.com/apache/hadoop/pull/1611#discussion_r341800073
##########
File path:
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/AzureBlobFileSystemStore.java
##########
@@ -684,212 +770,263 @@ private String
generateContinuationTokenForNonXns(final String path, final Strin
public void setOwner(final Path path, final String owner, final String
group) throws
AzureBlobFileSystemException {
- if (!getIsNamespaceEnabled()) {
- throw new UnsupportedOperationException(
- "This operation is only valid for storage accounts with the
hierarchical namespace enabled.");
- }
+ try (AbfsPerfInfo tracker = startTracking("setOwner", "setOwner")) {
+ if (!getIsNamespaceEnabled()) {
Review comment:
Moved the check outside.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]