You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Lars Francke (JIRA)" <ji...@apache.org> on 2015/11/09 20:29:11 UTC
[jira] [Updated] (HBASE-4556) Fix all incorrect uses of
InternalScanner.next(...)
[ https://issues.apache.org/jira/browse/HBASE-4556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lars Francke updated HBASE-4556:
--------------------------------
Fix Version/s: 0.92.0
0.94.0
> Fix all incorrect uses of InternalScanner.next(...)
> ---------------------------------------------------
>
> Key: HBASE-4556
> URL: https://issues.apache.org/jira/browse/HBASE-4556
> Project: HBase
> Issue Type: Bug
> Reporter: Lars Hofhansl
> Assignee: Lars Hofhansl
> Fix For: 0.92.0, 0.94.0
>
> Attachments: 4556-v1.txt, 4556.txt
>
>
> There are cases all over the code where InternalScanner.next(...) is not used correctly.
> I see this a lot:
> {code}
> while(scanner.next(...)) {
> }
> {code}
> The correct pattern is:
> {code}
> boolean more = false;
> do {
> more = scanner.next(...);
> } while (more);
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)