hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Kellerman (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-892) Cell iteration is broken
Date Mon, 22 Sep 2008 19:48:44 GMT

    [ https://issues.apache.org/jira/browse/HBASE-892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12633450#action_12633450
] 

Jim Kellerman commented on HBASE-892:
-------------------------------------

Several comments on this patch.
- patch does not apply.
- both the current code and the patch do essentially the same thing. Both work provide you
follow the Iterator idiom.

{code}
Iterator<Cell> it = cell.iterator();
while (it.hasNext()) {
  Cell c = it.next();
  ...
}
{code}


> Cell iteration is broken
> ------------------------
>
>                 Key: HBASE-892
>                 URL: https://issues.apache.org/jira/browse/HBASE-892
>             Project: Hadoop HBase
>          Issue Type: Bug
>          Components: io
>    Affects Versions: 0.19.0
>            Reporter: Doğacan Güney
>            Priority: Minor
>         Attachments: cell.patch
>
>
> Cell implements Iterable<Cell> but its iteration is broken since it will always
go one past the edge and throw an ArrayIndexOutOfBoundsException

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message