You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladimir Ozerov (JIRA)" <ji...@apache.org> on 2018/08/16 15:24:01 UTC
[jira] [Updated] (IGNITE-7501) Improve underlying iterators closing
process for cache iterators.
[ https://issues.apache.org/jira/browse/IGNITE-7501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladimir Ozerov updated IGNITE-7501:
------------------------------------
Component/s: mvcc
> Improve underlying iterators closing process for cache iterators.
> -----------------------------------------------------------------
>
> Key: IGNITE-7501
> URL: https://issues.apache.org/jira/browse/IGNITE-7501
> Project: Ignite
> Issue Type: Improvement
> Components: cache, mvcc
> Affects Versions: 2.3
> Reporter: Roman Kondakov
> Assignee: Roman Kondakov
> Priority: Major
> Fix For: 2.7
>
>
> When we call {{javax.cache.Cache#iterator()}} we get {{java.util.Iterator}} which doesn't have a {{close()}} method. But underlying {{GridCloseableIterator}} does have this method and it should be called when all the work with the current iterator is done. Currently calling {{close()}} for the underlying closeable iterator is delegated to {{WeakQueryCloseableIterator}}. So, {{close()}} method is usually called in GridCacheGateway#onEnter or on a garbage collection phase, which is not acceptable in some situations. For example if MVCC is enabled, this *late* iterator closing could dramatically increase the active queries tracking list size which could lead to the performance and garbage collection ("vacuum") issues.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)