Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.19.0, 0.19.1
-
None
-
Fix API doc of HTable.getRow (non-existent row key returns null instead of empty RowResult)
Description
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.
Attachments
Attachments
Issue Links
- is related to
-
HBASE-1292 php thrift's getRow() would throw an exception if the row does not exist
- Closed
-
HBASE-1837 Fix results contract (If row has no results, return null, if Result has no results return null or empty Sets and Arrays?)
- Closed
- relates to
-
HBASE-1028 If key does not exist, return null in getRow rather than an empty RowResult
- Closed