HBASE-2222 Improve log "Trying to contact region server Some server for region , row ip_info_100,,1263329969690, but failed after 11 attempts.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@909581 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-02-12 19:50:56 +00:00
parent c6ee51819a
commit 69bd0cb802
2 changed files with 8 additions and 5 deletions

View File

@ -359,6 +359,9 @@ Release 0.21.0 - Unreleased
(Kay Kay via Stack)
HBASE-2177 Add timestamping to gc logging option
HBASE-2066 Perf: parallelize puts
HBASE-2222 Improve log "Trying to contact region server Some server for
region, row 'ip_info_100,,1263329969690', but failed after
11 attempts".
NEW FEATURES
HBASE-1961 HBase EC2 scripts

View File

@ -49,8 +49,6 @@ import org.apache.hadoop.hbase.KeyValue;
import org.apache.hadoop.hbase.MasterNotRunningException;
import org.apache.hadoop.hbase.RemoteExceptionHandler;
import org.apache.hadoop.hbase.TableNotFoundException;
import org.apache.hadoop.hbase.NotServingRegionException;
import org.apache.hadoop.hbase.regionserver.WrongRegionException;
import org.apache.hadoop.hbase.client.MetaScanner.MetaScannerVisitor;
import org.apache.hadoop.hbase.ipc.HBaseRPC;
import org.apache.hadoop.hbase.ipc.HBaseRPCProtocolVersion;
@ -1096,8 +1094,8 @@ public class HConnectionManager implements HConstants {
}
private HRegionLocation
getRegionLocationForRowWithRetries(byte[] tableName, byte[] rowKey,
boolean reload)
getRegionLocationForRowWithRetries(byte[] tableName, byte[] rowKey,
boolean reload)
throws IOException {
boolean reloadFlag = reload;
List<Throwable> exceptions = new ArrayList<Throwable>();
@ -1121,7 +1119,9 @@ public class HConnectionManager implements HConstants {
}
}
if (location == null) {
throw new RetriesExhaustedException("Some server",
throw new RetriesExhaustedException(" -- nothing found, no 'location' returned," +
" tableName=" + Bytes.toString(tableName) +
", reload=" + reload + " --",
HConstants.EMPTY_BYTE_ARRAY, rowKey, tries, exceptions);
}
return location;