You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Anoop Sam John (JIRA)" <ji...@apache.org> on 2017/04/20 05:20:04 UTC
[jira] [Commented] (HBASE-17941) CellArrayMap#getCell may throw
IndexOutOfBoundsException
[ https://issues.apache.org/jira/browse/HBASE-17941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15976097#comment-15976097 ]
Anoop Sam John commented on HBASE-17941:
----------------------------------------
Better to correct the code so as to avoid confusion for readers.
> CellArrayMap#getCell may throw IndexOutOfBoundsException
> --------------------------------------------------------
>
> Key: HBASE-17941
> URL: https://issues.apache.org/jira/browse/HBASE-17941
> Project: HBase
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Chia-Ping Tsai
> Priority: Minor
> Labels: beginner
> Fix For: 2.0.0
>
>
> {noformat}
> @Override
> protected Cell getCell(int i) {
> if( (i < minCellIdx) && (i >= maxCellIdx) ) return null;
> return block[i];
> }
> {noformat}
> && -> ||
> We have checked the index of bound before calling this method, so the exception doesn't happen at current trunk.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)