HBASE-7151 Better log message for Per-CF compactions

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1408502 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
gchanan 2012-11-12 23:19:53 +00:00
parent a65a66be3d
commit 6f09882c7f
1 changed files with 4 additions and 1 deletions

View File

@ -3582,7 +3582,10 @@ public class HRegionServer implements ClientProtocol,
}
}
String log = "User-triggered " + (major ? "major " : "") + "compaction";
String familyLogMsg = (family != null)?" for column family: " + Bytes.toString(family):"";
LOG.trace("User-triggered compaction requested for region " +
region.getRegionNameAsString() + familyLogMsg);
String log = "User-triggered " + (major ? "major " : "") + "compaction" + familyLogMsg;
if(family != null) {
compactSplitThread.requestCompaction(region, store, log,
Store.PRIORITY_USER);