HBASE-1028 If key does not exist, return null in getRow rather than an empty RowResult

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@721390 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2008-11-28 09:00:58 +00:00
parent 42a2b6f4f1
commit 2ccb234ab3
2 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,8 @@ Release 0.19.0 - Unreleased
caching work....?] -- Update your hbad-default.xml file!
HBASE-636 java6 as a requirement
HBASE-994 IPC interfaces with different versions can cause problems
HBASE-1028 If key does not exist, return null in getRow rather than an
empty RowResult
BUG FIXES
HBASE-891 HRS.validateValuesLength throws IOE, gets caught in the retries

View File

@ -1274,6 +1274,8 @@ public class HRegionServer implements HConstants, HRegionInterface, Runnable {
HRegion region = getRegion(regionName);
Map<byte [], Cell> map = region.getFull(row, columnSet, ts,
getLockFromId(lockId));
if (map == null || map.isEmpty())
return null;
HbaseMapWritable<byte [], Cell> result =
new HbaseMapWritable<byte [], Cell>();
result.putAll(map);