HBASE-16289 AsyncProcess stuck messages need to print region/server

This commit is contained in:
Yu Li 2016-07-29 11:21:42 +08:00
parent 66fb697f81
commit ab9df0a014
1 changed files with 5 additions and 1 deletions

View File

@ -1682,7 +1682,11 @@ class AsyncProcess {
if (!hasWait) { // Only log if wait is infinite. if (!hasWait) { // Only log if wait is infinite.
if (now > lastLog + 10000) { if (now > lastLog + 10000) {
lastLog = now; lastLog = now;
LOG.info("#" + id + ", waiting for " + currentInProgress + " actions to finish"); LOG.info("#" + id + ", waiting for " + currentInProgress
+ " actions to finish on table: " + tableName);
if (currentInProgress <= thresholdToLogUndoneTaskDetails) {
logDetailsOfUndoneTasks(currentInProgress);
}
} }
} }
synchronized (actionsInProgress) { synchronized (actionsInProgress) {