ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Stelmak (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-10045) Add fail-fast mode to bounded iteration of StandaloneWalRecordsIterator
Date Tue, 30 Oct 2018 12:06:00 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-10045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16668624#comment-16668624
] 

Alexey Stelmak commented on IGNITE-10045:
-----------------------------------------

TC: https://ci.ignite.apache.org/viewLog.html?buildId=2194724&tab=buildResultsDiv&buildTypeId=IgniteTests24Java8_RunAll

> 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
>            Assignee: Alexey Stelmak
>            Priority: Major
>             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)

Mime
View raw message