-
Notifications
You must be signed in to change notification settings - Fork 90
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
Conversation
80ec5c3
to
9630ac9
Compare
*/ | ||
@Test | ||
public void testRangeNextNoSuchElementException() { | ||
when(mockStorage.range(EXPECTED_RESULT_ENTRY.key().bytes(), null)).thenAnswer(invocation -> { |
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.
Why can't get NoSuchElementException honestly? (Iterate until a cursor finished)
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.
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); |
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.
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.
8cdb02b
to
696887f
Compare
|
||
fut.completeExceptionally(restoredTh); | ||
} | ||
catch (Exception e) { |
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.
Can you write a warning here?
"The exception does not have a constructor with a string message, IgniteException will be use."
https://issues.apache.org/jira/browse/IGNITE-15581