HBASE-2419 Remove from RS logs the fat NotServingRegionException stack

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@931698 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-04-07 21:38:42 +00:00
parent 4c5eec3968
commit 8b9247cdca
3 changed files with 5 additions and 4 deletions

View File

@ -485,6 +485,7 @@ Release 0.21.0 - Unreleased
holds up all flushing holds up all flushing
HBASE-2252 Mapping a very big table kills region servers HBASE-2252 Mapping a very big table kills region servers
HBASE-2412 [stargate] PerformanceEvaluation HBASE-2412 [stargate] PerformanceEvaluation
HBASE-2419 Remove from RS logs the fat NotServingRegionException stack
NEW FEATURES NEW FEATURES
HBASE-1961 HBase EC2 scripts HBASE-1961 HBase EC2 scripts

View File

@ -1661,7 +1661,7 @@ public class HRegion implements HConstants, HeapSize { // , Writable{
splitsAndClosesLock.readLock().lock(); splitsAndClosesLock.readLock().lock();
try { try {
if (this.closed.get()) { if (this.closed.get()) {
throw new NotServingRegionException("Region " + this + " closed"); throw new NotServingRegionException(this + " is closed");
} }
synchronized (lockedRows) { synchronized (lockedRows) {
while (lockedRows.contains(row)) { while (lockedRows.contains(row)) {

View File

@ -1416,7 +1416,7 @@ public class HRegionServer implements HConstants, HRegionInterface,
+ e.msg.toString()); + e.msg.toString());
} }
} catch (InterruptedException ex) { } catch (InterruptedException ex) {
// continue LOG.warn("Processing Worker queue", ex);
} catch (Exception ex) { } catch (Exception ex) {
if (ex instanceof IOException) { if (ex instanceof IOException) {
ex = RemoteExceptionHandler.checkIOException((IOException) ex); ex = RemoteExceptionHandler.checkIOException((IOException) ex);
@ -1714,7 +1714,8 @@ public class HRegionServer implements HConstants, HRegionInterface,
LOG.debug("Batch puts: " + i, ex); LOG.debug("Batch puts: " + i, ex);
return i; return i;
} catch (NotServingRegionException ex) { } catch (NotServingRegionException ex) {
LOG.debug("Batch puts: " + i, ex); LOG.debug("Batch puts interrupted at index=" + i + " because:" +
ex.getMessage());
return i; return i;
} catch (Throwable t) { } catch (Throwable t) {
throw convertThrowableToIOE(cleanup(t)); throw convertThrowableToIOE(cleanup(t));
@ -2427,5 +2428,4 @@ public class HRegionServer implements HConstants, HRegionInterface,
return resp; return resp;
} }
} }