-
Notifications
You must be signed in to change notification settings - Fork 1.9k
IGNITE-26891 Add serdes tests for Services with custom exceptions #12555
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
base: master
Are you sure you want to change the base?
Conversation
| log.error("Failed to unmarshal deployment error.", e); | ||
|
|
||
| Exception ex = new IgniteCheckedException( | ||
| "Failed to unmarshal deployment error! See server logs for details." |
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.
| "Failed to unmarshal deployment error! See server logs for details." | |
| "Failed to unmarshal deployment error, see server logs for details." |
|
|
||
| try { | ||
| Exception ex = new IgniteCheckedException( | ||
| "Failed to marshal deployment error! See server logs for details, err=" + th |
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.
| "Failed to marshal deployment error! See server logs for details, err=" + th | |
| "Failed to marshal deployment error, see server logs for details. Deployment error: " + th |
| errorsBytes.add(arr); | ||
| } | ||
| catch (IgniteCheckedException ex) { | ||
| log.error("Failed to attach marshal deployment error to the message, err=" + th, ex); |
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.error("Failed to attach marshal deployment error to the message, err=" + th, ex); | |
| log.error("Failed to attach deployment error information to deployment result message", ex); |
| client.services().cancel(SERVICE_NAME); | ||
|
|
||
| if (shouldThrow) | ||
| fail("Exception has been expected."); |
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.
| fail("Exception has been expected."); | |
| fail("An expected exception has not been thrown."); |
| } | ||
|
|
||
| /** */ | ||
| public void throwRunnableException() { |
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.
| public void throwRunnableException() { | |
| public void throwRuntimeException() { |
|



Thank you for submitting the pull request to the Apache Ignite.
In order to streamline the review of the contribution
we ask you to ensure the following steps have been taken:
The Contribution Checklist
The description explains WHAT and WHY was made instead of HOW.
The following pattern must be used:
IGNITE-XXXX Change summarywhereXXXX- number of JIRA issue.(see the Maintainers list)
the
green visaattached to the JIRA ticket (see TC.Bot: Check PR)Notes
If you need any help, please email [email protected] or ask anу advice on http://asf.slack.com #ignite channel.