You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladislav Pyatkov (Jira)" <ji...@apache.org> on 2022/11/18 08:47:00 UTC
[jira] [Updated] (IGNITE-18192) Conditional lock
[ https://issues.apache.org/jira/browse/IGNITE-18192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladislav Pyatkov updated IGNITE-18192:
---------------------------------------
Epic Link: IGNITE-18042
> Conditional lock
> ----------------
>
> Key: IGNITE-18192
> URL: https://issues.apache.org/jira/browse/IGNITE-18192
> Project: Ignite
> Issue Type: Improvement
> Reporter: Vladislav Pyatkov
> Priority: Major
> Labels: ignite-3
>
> *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)