Vladislav Pyatkov created IGNITE-21231:
------------------------------------------
Summary: HeapLockManager#locks method do not provide all acuired
locks.
Key: IGNITE-21231
URL: https://issues.apache.org/jira/browse/IGNITE-21231
Project: Ignite
Issue Type: Bug
Reporter: Vladislav Pyatkov
h3. Motivation
If a lock key does not use the context id (LockKey#contextId is null), it does
not appear in the iterator. Here is a test that demonstrates incorrect behavior:
{code:title=AbstractLockManagerTest.java}
@Test
public void simpleTest() {
UUID txId1 = TestTransactionIds.newTransactionId();
LockKey key = new LockKey(0);
lockManager.acquire(txId1, key, S).join();
assertTrue(lockManager.locks(txId1).hasNext());
}
{code}
h3. Definition of done
Despite the fact that the method is used only in tests, it has to work
correctly. All locks should be in the lock iterator.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)