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:
parent
42a2b6f4f1
commit
2ccb234ab3
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue