You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Ivan Bessonov (Jira)" <ji...@apache.org> on 2023/04/18 12:31:00 UTC
[jira] [Created] (IGNITE-19302) Phantom reads protection is broken
Ivan Bessonov created IGNITE-19302:
--------------------------------------
Summary: Phantom reads protection is broken
Key: IGNITE-19302
URL: https://issues.apache.org/jira/browse/IGNITE-19302
Project: Ignite
Issue Type: Bug
Reporter: Ivan Bessonov
{{SortedIndexLocker#acquireLockNextKey}} is poorly implemented and not tested properly. It ignores the documented contract of {{hasNext}} and {{peek}} from {{{}PeekCursor{}}}.
"Has next" checks must essentially be replaced with {{{}peek() != null{}}}.
Unit tests, that would simulate concurrent operations, or maybe even do concurrent operations, must be implemented.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)