[
https://issues.apache.org/jira/browse/IGNITE-9622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16663431#comment-16663431
]
Ivan Pavlukhin commented on IGNITE-9622:
----------------------------------------
We need to establish consistent (acceptable) _unsupported operation_ protocol.
I looked into existing code and did not find a common practice.
Some thoughts about a subject. Using unsupported transaction mode in Java code
is definitely a programming error (like accessing an array element at index
-1). So, it is not supposed to be handled in run time. JCache uses
{{UnsupportedOperationException}}, {{IllegalArgumentException}} and other
unchecked exceptions form Java standard library in places where an user
requested an operation illegal by some reason.
> MVCC Cache API: prohibit non PESSIMISTIC REPEATABLE_READ transactions
> ---------------------------------------------------------------------
>
> Key: IGNITE-9622
> URL: https://issues.apache.org/jira/browse/IGNITE-9622
> Project: Ignite
> Issue Type: Bug
> Components: mvcc
> Reporter: Ivan Pavlukhin
> Assignee: Ivan Pavlukhin
> Priority: Major
> Fix For: 2.8
>
>
> For cache with enabled mvcc we should allow running only PESSIMISTIC
> REPEATABLE_READ transactions. For other modes exception should be thrown
> (like is done for SQL API).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)