You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Ivan Rakov (JIRA)" <ji...@apache.org> on 2018/10/29 12:07:00 UTC

[jira] [Created] (IGNITE-10045) Add fail-fast mode to bounded iteration of StandaloneWalRecordsIterator

Ivan Rakov created IGNITE-10045:
-----------------------------------

             Summary: Add fail-fast mode to bounded iteration of StandaloneWalRecordsIterator
                 Key: IGNITE-10045
                 URL: https://issues.apache.org/jira/browse/IGNITE-10045
             Project: Ignite
          Issue Type: Improvement
            Reporter: Ivan Rakov
             Fix For: 2.8


Since IGNITE-9294 StandaloneWalRecordsIterator supports bounded iteration. That means we can specify "from" and "to" WAL pointers and iterator will return records only between given bounds. 
The problem is that in current implementation StandaloneWalRecordsIterator just skips segments if they are missing. For example: if we'll specify fromIdx=0, toIdx = 10 and segments with indexes=[9, 10] will be missing, we'll just silently finish iteration on idx=8.
To prevent that, we should be able to switch on fail-fast mode, in which StandaloneWalRecordsIterator will throw error unless iteration is really started from left bound and ended on right bound.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)