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

2018-02-13 Thread ALEKSEY KUZNETSOV
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*


[jira] [Created] (IGNITE-7409) Rework exception handling in suspend()\resume() methods

2018-01-15 Thread Alexey Kuznetsov (JIRA)
Alexey Kuznetsov created IGNITE-7409:


 Summary: Rework exception handling in suspend()\resume() methods
 Key: IGNITE-7409
 URL: https://issues.apache.org/jira/browse/IGNITE-7409
 Project: Ignite
  Issue Type: Bug
 Environment: Rework exception handling logicin suspend()\resume() 
methods.

Currently user may cause assertion error when misusing suspend()\resume() 
methods, needs to move some exception handling logic from asserts into "if-then 
throw" clauses.  
Reporter: Alexey Kuznetsov
Assignee: Alexey Kuznetsov






--
This message was sent by Atlassian JIRA
(v7.6.3#76005)