HBASE-2189 HCM trashes meta cache even when not needed
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@908730 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cdfc6d1c1d
commit
39505bccd0
|
@ -353,6 +353,7 @@ Release 0.21.0 - Unreleased
|
|||
HBASE-2198 SingleColumnValueFilter should be able to find the column value
|
||||
even when it's not specifically added as input on the sc
|
||||
(Ferdy via Stack)
|
||||
HBASE-2189 HCM trashes meta cache even when not needed
|
||||
|
||||
NEW FEATURES
|
||||
HBASE-1961 HBase EC2 scripts
|
||||
|
|
|
@ -45,6 +45,8 @@ 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;
|
||||
|
@ -737,12 +739,15 @@ public class HConnectionManager implements HConstants {
|
|||
this.numRetries + " failed; retrying after sleep of " +
|
||||
getPauseTime(tries) + " because: " + e.getMessage());
|
||||
}
|
||||
relocateRegion(parentTable, metaKey);
|
||||
} else {
|
||||
throw e;
|
||||
}
|
||||
// Only relocate the parent region if necessary
|
||||
if(!(e instanceof RegionOfflineException ||
|
||||
e instanceof NoServerForRegionException)) {
|
||||
relocateRegion(parentTable, metaKey);
|
||||
}
|
||||
}
|
||||
|
||||
try{
|
||||
Thread.sleep(getPauseTime(tries));
|
||||
} catch (InterruptedException e){
|
||||
|
|
Loading…
Reference in New Issue