Vladislav Pyatkov created IGNITE-18192:
------------------------------------------

             Summary: Conditional lock
                 Key: IGNITE-18192
                 URL: https://issues.apache.org/jira/browse/IGNITE-18192
             Project: Ignite
          Issue Type: Improvement
            Reporter: Vladislav Pyatkov


*Motivation:*
In some case we need to change lock mode depends on current lock which is held 
in the key. This is impossible through Lock Manager API, because a lock mode 
can change concurrently in the same key on the same transaction.
Required a new method in API which allow choosing lock mode depends on 
previous. This choosing should be acted in a critical section, where another 
thread cannot change the mode until a new one is chosen.

*Implementation notes:*
Add a method to _LockManager_:
CompletableFuture<Lock> acquire(UUID txId, LockKey lockKey, Function<LockMode, 
LockMode>);



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to