Skip to content

Commit

Permalink
to return BLOB_PATH_NOT_FOUND is already added in the azureBlobClient…
Browse files Browse the repository at this point in the history
… branch.
  • Loading branch information
saxenapranav committed Jun 13, 2024
1 parent a705138 commit 736b32a
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -835,14 +835,6 @@ public AbfsRestOperation getPathStatus(final String path,
successOp.hardSetGetFileStatusResult(HTTP_OK);
return successOp;
}
/*
* Exception handling at AzureBlobFileSystem happens as per the error-code.
* In case of HEAD call that gets 4XX status, error code is not parsed from the response.
* Hence, we are throwing a new exception with error code and message.
*/
throw new AbfsRestOperationException(HTTP_NOT_FOUND,
AzureServiceErrorCode.BLOB_PATH_NOT_FOUND.getErrorCode(),
ex.getMessage(), ex);
}
if (op.getResult().getStatusCode() == HTTP_NOT_FOUND) {
/*
Expand Down

0 comments on commit 736b32a

Please sign in to comment.