You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Istvan Toth (Jira)" <ji...@apache.org> on 2021/01/27 08:39:00 UTC

[jira] [Resolved] (PHOENIX-6342) RoundRobinResultIterator doesn't close itself when result size = fetchsize-1

     [ https://issues.apache.org/jira/browse/PHOENIX-6342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Istvan Toth resolved PHOENIX-6342.
----------------------------------
    Fix Version/s: 4.17.0
                   5.1.0
       Resolution: Fixed

Committed to master and 4.x
Thanks for the quick review [~vjasani] ( and [~dbwong] on the parent ticket)
 
[~yanxinyi] I suggest that this is backported to 4.16.0

> RoundRobinResultIterator doesn't close itself when result size = fetchsize-1
> ----------------------------------------------------------------------------
>
>                 Key: PHOENIX-6342
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-6342
>             Project: Phoenix
>          Issue Type: Sub-task
>          Components: core
>    Affects Versions: 4.15.0, 5.1.0
>            Reporter: Istvan Toth
>            Assignee: Istvan Toth
>            Priority: Blocker
>             Fix For: 5.1.0, 4.17.0
>
>
> RoundRobinResultIterator is mising a close() method call when the last record read causes the final increment to numScannersCacheExhausted.
> Most of the time this isn't fatal, as the next next() call will close the scanners, and call close(), but in some hard to reproduce cases, the iterators will reset, and keep sending their results again and again in an infinite loop.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)