Print out regions we're watiing on when going down
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1041561 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
616d1959eb
commit
1eb39242c4
|
@ -552,6 +552,8 @@ public class HRegionServer implements HRegionInterface, HBaseRPCErrorHandler,
|
|||
} else if (!this.stopping) {
|
||||
this.stopping = true;
|
||||
closeUserRegions(this.abortRequested);
|
||||
} else if (this.stopping && LOG.isDebugEnabled()) {
|
||||
LOG.debug("Waiting on " + getOnlineRegionsAsPrintableString());
|
||||
}
|
||||
}
|
||||
long now = System.currentTimeMillis();
|
||||
|
@ -655,6 +657,17 @@ public class HRegionServer implements HRegionInterface, HBaseRPCErrorHandler,
|
|||
LOG.info(Thread.currentThread().getName() + " exiting");
|
||||
}
|
||||
|
||||
String getOnlineRegionsAsPrintableString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
synchronized (this.onlineRegions) {
|
||||
for (HRegion r: this.onlineRegions.values()) {
|
||||
if (sb.length() > 0) sb.append(", ");
|
||||
sb.append(r.getRegionInfo().getEncodedName());
|
||||
}
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Wait on regions close.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue