IGNITE-7409 Rework exception handling in suspend()\resume() methods

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

IGNITE-7409 Rework exception handling in suspend()\resume() methods

voipp
Hi, Igntrs!

When user misuses transactions, one could get assertion error.
Currently, when we start optimistic transaction, do some work within it and
try to resume it(which is incorrect behavior) assertion error is thrown. It
looks weird.
On the contrary more descriptive exception should be thrown.

In my fix exception handling is reworked, plz review it:
tickect [1],
review in upsource [2].

[1]: https://issues.apache.org/jira/browse/IGNITE-7409
[2]: https://reviews.ignite.apache.org/ignite/review/IGNT-CR-463
--

*Best Regards,*

*Kuznetsov Aleksey*