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)