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

IGNITE-15581 add proper handling of errors in user's state machines #418

Closed
wants to merge 13 commits into from

Conversation

alievmirza
Copy link
Contributor

*/
@Test
public void testRangeNextNoSuchElementException() {
when(mockStorage.range(EXPECTED_RESULT_ENTRY.key().bytes(), null)).thenAnswer(invocation -> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why can't get NoSuchElementException honestly? (Iterate until a cursor finished)

Copy link
Contributor Author

@alievmirza alievmirza Nov 2, 2021

Choose a reason for hiding this comment

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

this is a valid case when the cursor on the server side is not found, for example

* that throwable will be changed to a more compact structure, containing only message. Note, that
* in case of compaction, corresponding throwable must be in classpath on a client side.
*/
void failure(Throwable th, boolean compacted);
Copy link
Contributor

Choose a reason for hiding this comment

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

Parameter compacted seems doubt to me.
Because it is a technical field it depends of some internal configuration (need stack on client of not, may be due to debug level). I do not wont to see this argument in the API.


fut.completeExceptionally(restoredTh);
}
catch (Exception e) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you write a warning here?
"The exception does not have a constructor with a string message, IgniteException will be use."

@asfgit asfgit closed this in 392717b Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants