You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Rong-En Fan (JIRA)" <ji...@apache.org> on 2009/03/31 12:11:52 UTC
[jira] Commented: (HBASE-1301) HTable.getRow() returns null if the
row does no exist
[ https://issues.apache.org/jira/browse/HBASE-1301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12694045#action_12694045 ]
Rong-En Fan commented on HBASE-1301:
------------------------------------
>From the doc, I would expect we got a valid RowResult with RowResult.isEmpty() is true for non-existent row.
> HTable.getRow() returns null if the row does no exist
> -----------------------------------------------------
>
> Key: HBASE-1301
> URL: https://issues.apache.org/jira/browse/HBASE-1301
> Project: Hadoop HBase
> Issue Type: Bug
> Components: client
> Affects Versions: 0.19.1
> Reporter: Rong-En Fan
> Priority: Minor
>
> The HBase API docs says when the row does not exist, getRow() returns
> RowResult is empty if row does not exist.
> However, in regionserver/HRegionServer.java's getRow():
> if (result == null || result.isEmpty())
> return null;
> return new RowResult(row, result);
> It actually returns null. Either fix the code or the document.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.