HBASE-15391 Avoid too large "deleted from META" info log (Liu Shaohui)

This commit is contained in:
Michael Stack 2017-06-30 03:53:33 -07:00
parent 92f33ad076
commit 4223c0c0ac
1 changed files with 8 additions and 2 deletions

View File

@ -1977,7 +1977,10 @@ public class MetaTableAccessor {
deletes.add(e); deletes.add(e);
} }
deleteFromMetaTable(connection, deletes); deleteFromMetaTable(connection, deletes);
LOG.info("Deleted " + regionsInfo); LOG.info("Deleted " + regionInfos.size() + " regions from META");
if (LOG.isDebugEnabled()) {
LOG.debug("Deleted regions: " + regionInfos);
}
} }
/** /**
@ -2029,7 +2032,10 @@ public class MetaTableAccessor {
// //
// HBASE-13875 uses master timestamp for the mutations. The 20ms sleep is not needed // HBASE-13875 uses master timestamp for the mutations. The 20ms sleep is not needed
addRegionsToMeta(connection, regionInfos, regionReplication, now+1); addRegionsToMeta(connection, regionInfos, regionReplication, now+1);
LOG.info("Overwritten " + regionInfos); LOG.info("Overwritten " + regionInfos.size() + " regions to Meta");
if (LOG.isDebugEnabled()) {
LOG.debug("Overwritten regions: " + regionInfos);
}
} }
/** /**