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/05/02 09:18:00 UTC
[jira] [Updated] (IGNITE-19302) Phantom reads protection is broken
[ https://issues.apache.org/jira/browse/IGNITE-19302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Bessonov updated IGNITE-19302:
-----------------------------------
Reviewer: Roman Puchkovskiy
> 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
> Assignee: Ivan Bessonov
> Priority: Major
> Labels: ignite-3
> Time Spent: 1h
> Remaining Estimate: 0h
>
> {{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)