HBASE-1079 Dumb NPE in ServerCallable hides the RetriesExhausted exception

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@728688 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Daniel Cryans 2008-12-22 13:36:04 +00:00
parent 80eb7de81d
commit 7e439ed42f
2 changed files with 4 additions and 0 deletions

View File

@ -112,6 +112,7 @@ Release 0.19.0 - Unreleased
HBASE-1067 TestRegionRebalancing broken by running of hdfs shutdown thread HBASE-1067 TestRegionRebalancing broken by running of hdfs shutdown thread
HBASE-1070 Up default index interval in TRUNK and branch HBASE-1070 Up default index interval in TRUNK and branch
HBASE-1045 Hangup by regionserver causes write to fail HBASE-1045 Hangup by regionserver causes write to fail
HBASE-1079 Dumb NPE in ServerCallable hides the RetriesExhausted exception
IMPROVEMENTS IMPROVEMENTS
HBASE-901 Add a limit to key length, check key and value length on client side HBASE-901 Add a limit to key length, check key and value length on client side

View File

@ -68,6 +68,9 @@ public abstract class ServerCallable<T> implements Callable<T> {
/** @return the region name */ /** @return the region name */
public byte[] getRegionName() { public byte[] getRegionName() {
if (location == null) {
return null;
}
return location.getRegionInfo().getRegionName(); return location.getRegionInfo().getRegionName();
} }