Skip to content
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

Merged
merged 13 commits into from
Jun 24, 2024
Merged

Support TOS exception handle in Alluxio #18630

merged 13 commits into from
Jun 24, 2024

Conversation

thu-david
Copy link
Contributor

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?

errorDescription = cause.getCode() + ":" + cause.getMessage();
public static AlluxioTosException from(String errorMessage, TosException cause) {
Status status = httpStatusToGrpcStatus(cause.getStatusCode());
String errorDescription = cause.getCode() + ":" + cause.getMessage();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOG.warn(errorDescription);

Copy link
Contributor

@Jackson-Wang-7 Jackson-Wang-7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Jackson-Wang-7
Copy link
Contributor

alluxio-bot, merge this please

@alluxio-bot
Copy link
Contributor

merge failed:
Merge refused because pull request does not have label start with type-

@Jackson-Wang-7 Jackson-Wang-7 added the type-feature This issue is a feature request label Jun 24, 2024
@Jackson-Wang-7
Copy link
Contributor

alluxio-bot, merge this please

@alluxio-bot alluxio-bot merged commit 51e6f87 into Alluxio:master-2.x Jun 24, 2024
19 checks passed
Xenorith pushed a commit that referenced this pull request Jun 24, 2024
### 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature This issue is a feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants