HBASE-16739 Timed out exception message should include encoded region name

This commit is contained in:
tedyu 2016-10-03 06:46:04 -07:00
parent 1c083d9794
commit b43d1ecf5c
1 changed files with 2 additions and 1 deletions

View File

@ -5267,7 +5267,8 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi
result = null;
// Clean up the counts just in case this was the thing keeping the context alive.
rowLockContext.cleanUp();
throw new IOException("Timed out waiting for lock for row: " + rowKey);
throw new IOException("Timed out waiting for lock for row: " + rowKey + " in region "
+ getRegionInfo().getEncodedName());
}
rowLockContext.setThreadName(Thread.currentThread().getName());
return result;