-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support TOS exception handle in Alluxio #18630
Conversation
underfs/tos/src/main/java/alluxio/underfs/tos/TOSUnderFileSystemFactory.java
Show resolved
Hide resolved
errorDescription = cause.getCode() + ":" + cause.getMessage(); | ||
public static AlluxioTosException from(String errorMessage, TosException cause) { | ||
Status status = httpStatusToGrpcStatus(cause.getStatusCode()); | ||
String errorDescription = cause.getCode() + ":" + cause.getMessage(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOG.warn(errorDescription);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
alluxio-bot, merge this please |
merge failed: |
alluxio-bot, merge this please |
### What changes are proposed in this pull request? Modified the exception handling related to Tos. ### Why are the changes needed? 1. Because the exception handling needs to conform to Alluxio's conventions. 2. Some exceptions were not handled previously. ### Does this PR introduce any user facing changes? pr-link: #18630 change-id: cid-3a1c12c6d1d9f2271e0ec13ba83629bbaf9c6850
What changes are proposed in this pull request?
Modified the exception handling related to Tos.
Why are the changes needed?
Does this PR introduce any user facing changes?