HBASE-4861 Fix some misspells and extraneous characters in logs; set some to TRACE
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1205732 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fc20e56a0f
commit
8d056194e1
|
@ -655,9 +655,8 @@ implements WritableComparable<HRegionInfo> {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "REGION => {" + HConstants.NAME + " => '" +
|
return "{" + HConstants.NAME + " => '" +
|
||||||
this.regionNameStr
|
this.regionNameStr
|
||||||
+ "', TableName => '" + Bytes.toStringBinary(this.tableName)
|
|
||||||
+ "', STARTKEY => '" +
|
+ "', STARTKEY => '" +
|
||||||
Bytes.toStringBinary(this.startKey) + "', ENDKEY => '" +
|
Bytes.toStringBinary(this.startKey) + "', ENDKEY => '" +
|
||||||
Bytes.toStringBinary(this.endKey) +
|
Bytes.toStringBinary(this.endKey) +
|
||||||
|
|
|
@ -289,8 +289,9 @@ public class MetaEditor {
|
||||||
delete.deleteColumns(HConstants.CATALOG_FAMILY, HConstants.SPLITA_QUALIFIER);
|
delete.deleteColumns(HConstants.CATALOG_FAMILY, HConstants.SPLITA_QUALIFIER);
|
||||||
delete.deleteColumns(HConstants.CATALOG_FAMILY, HConstants.SPLITB_QUALIFIER);
|
delete.deleteColumns(HConstants.CATALOG_FAMILY, HConstants.SPLITB_QUALIFIER);
|
||||||
deleteMetaTable(catalogTracker, delete);
|
deleteMetaTable(catalogTracker, delete);
|
||||||
LOG.info("Deleted daughters references, qualifier=" + Bytes.toStringBinary(HConstants.SPLITA_QUALIFIER) + " and qualifier="
|
LOG.info("Deleted daughters references, qualifier=" + Bytes.toStringBinary(HConstants.SPLITA_QUALIFIER) +
|
||||||
+ Bytes.toStringBinary(HConstants.SPLITA_QUALIFIER) + ", from parent " + parent.getRegionNameAsString());
|
" and qualifier=" + Bytes.toStringBinary(HConstants.SPLITB_QUALIFIER) +
|
||||||
|
", from parent " + parent.getRegionNameAsString());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static HRegionInfo getHRegionInfo(
|
public static HRegionInfo getHRegionInfo(
|
||||||
|
@ -317,4 +318,4 @@ public class MetaEditor {
|
||||||
Bytes.toBytes(sn.getStartcode()));
|
Bytes.toBytes(sn.getStartcode()));
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1816,7 +1816,7 @@ public class HConnectionManager {
|
||||||
} else {
|
} else {
|
||||||
close(true);
|
close(true);
|
||||||
}
|
}
|
||||||
LOG.debug("The connection to " + this.zooKeeper + " has been closed.");
|
if (LOG.isTraceEnabled()) LOG.debug("" + this.zooKeeper + " closed.");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -746,8 +746,8 @@ public class HFileBlockIndex {
|
||||||
totalBlockUncompressedSize +=
|
totalBlockUncompressedSize +=
|
||||||
blockWriter.getUncompressedSizeWithoutHeader();
|
blockWriter.getUncompressedSizeWithoutHeader();
|
||||||
|
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isTraceEnabled()) {
|
||||||
LOG.debug("Wrote a " + numLevels + "-level index with root level at pos "
|
LOG.trace("Wrote a " + numLevels + "-level index with root level at pos "
|
||||||
+ out.getPos() + ", " + rootChunk.getNumEntries()
|
+ out.getPos() + ", " + rootChunk.getNumEntries()
|
||||||
+ " root-level entries, " + totalNumEntries + " total entries, "
|
+ " root-level entries, " + totalNumEntries + " total entries, "
|
||||||
+ StringUtils.humanReadableInt(this.totalBlockOnDiskSize) +
|
+ StringUtils.humanReadableInt(this.totalBlockOnDiskSize) +
|
||||||
|
@ -782,9 +782,11 @@ public class HFileBlockIndex {
|
||||||
rootChunk = curInlineChunk;
|
rootChunk = curInlineChunk;
|
||||||
curInlineChunk = new BlockIndexChunk();
|
curInlineChunk = new BlockIndexChunk();
|
||||||
|
|
||||||
LOG.info("Wrote a single-level " + description + " index with "
|
if (LOG.isTraceEnabled()) {
|
||||||
|
LOG.trace("Wrote a single-level " + description + " index with "
|
||||||
+ rootChunk.getNumEntries() + " entries, " + rootChunk.getRootSize()
|
+ rootChunk.getNumEntries() + " entries, " + rootChunk.getRootSize()
|
||||||
+ " bytes");
|
+ " bytes");
|
||||||
|
}
|
||||||
rootChunk.writeRoot(out);
|
rootChunk.writeRoot(out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -331,8 +331,10 @@ public class HFileReaderV2 extends AbstractHFileReader {
|
||||||
if (evictOnClose && cacheConf.isBlockCacheEnabled()) {
|
if (evictOnClose && cacheConf.isBlockCacheEnabled()) {
|
||||||
int numEvicted = cacheConf.getBlockCache().evictBlocksByPrefix(name
|
int numEvicted = cacheConf.getBlockCache().evictBlocksByPrefix(name
|
||||||
+ HFile.CACHE_KEY_SEPARATOR);
|
+ HFile.CACHE_KEY_SEPARATOR);
|
||||||
LOG.debug("On close, file=" + name + " evicted=" + numEvicted
|
if (LOG.isTraceEnabled()) {
|
||||||
|
LOG.trace("On close, file=" + name + " evicted=" + numEvicted
|
||||||
+ " block(s)");
|
+ " block(s)");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (closeIStream && istream != null) {
|
if (closeIStream && istream != null) {
|
||||||
istream.close();
|
istream.close();
|
||||||
|
|
|
@ -110,7 +110,7 @@ public class SplitRegionHandler extends EventHandler implements TotesHRegionInfo
|
||||||
parent.getEncodedName() + ")", e);
|
parent.getEncodedName() + ")", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LOG.info("Handled SPLIT report); parent=" +
|
LOG.info("Handled SPLIT event; parent=" +
|
||||||
this.parent.getRegionNameAsString() +
|
this.parent.getRegionNameAsString() +
|
||||||
" daughter a=" + this.daughters.get(0).getRegionNameAsString() +
|
" daughter a=" + this.daughters.get(0).getRegionNameAsString() +
|
||||||
"daughter b=" + this.daughters.get(1).getRegionNameAsString());
|
"daughter b=" + this.daughters.get(1).getRegionNameAsString());
|
||||||
|
|
|
@ -1580,7 +1580,6 @@ public class HRegionServer implements HRegionInterface, HBaseRPCErrorHandler,
|
||||||
|
|
||||||
// Add to online regions if all above was successful.
|
// Add to online regions if all above was successful.
|
||||||
addToOnlineRegions(r);
|
addToOnlineRegions(r);
|
||||||
LOG.info("addToOnlineRegions is done" + r.getRegionInfo());
|
|
||||||
// Update ZK, ROOT or META
|
// Update ZK, ROOT or META
|
||||||
if (r.getRegionInfo().isRootRegion()) {
|
if (r.getRegionInfo().isRootRegion()) {
|
||||||
RootLocationEditor.setRootLocation(getZooKeeper(),
|
RootLocationEditor.setRootLocation(getZooKeeper(),
|
||||||
|
@ -1598,7 +1597,7 @@ public class HRegionServer implements HRegionInterface, HBaseRPCErrorHandler,
|
||||||
this.serverNameFromMasterPOV);
|
this.serverNameFromMasterPOV);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LOG.info("Done with post open deploy taks for region=" +
|
LOG.info("Done with post open deploy task for region=" +
|
||||||
r.getRegionNameAsString() + ", daughter=" + daughter);
|
r.getRegionNameAsString() + ", daughter=" + daughter);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -393,7 +393,7 @@ public class SplitTransaction {
|
||||||
// that it's possible for the master to miss an event.
|
// that it's possible for the master to miss an event.
|
||||||
do {
|
do {
|
||||||
if (spins % 10 == 0) {
|
if (spins % 10 == 0) {
|
||||||
LOG.info("Still waiting on the master to process the split for " +
|
LOG.debug("Still waiting on the master to process the split for " +
|
||||||
this.parent.getRegionInfo().getEncodedName());
|
this.parent.getRegionInfo().getEncodedName());
|
||||||
}
|
}
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
|
|
|
@ -173,12 +173,12 @@ public final class BloomFilterFactory {
|
||||||
CacheConfig cacheConf, BloomType bloomType, int maxKeys,
|
CacheConfig cacheConf, BloomType bloomType, int maxKeys,
|
||||||
HFile.Writer writer) {
|
HFile.Writer writer) {
|
||||||
if (!isGeneralBloomEnabled(conf)) {
|
if (!isGeneralBloomEnabled(conf)) {
|
||||||
LOG.debug("Bloom filters are disabled by configuration for "
|
LOG.trace("Bloom filters are disabled by configuration for "
|
||||||
+ writer.getPath()
|
+ writer.getPath()
|
||||||
+ (conf == null ? " (configuration is null)" : ""));
|
+ (conf == null ? " (configuration is null)" : ""));
|
||||||
return null;
|
return null;
|
||||||
} else if (bloomType == BloomType.NONE) {
|
} else if (bloomType == BloomType.NONE) {
|
||||||
LOG.debug("Bloom filter is turned off for the column family");
|
LOG.trace("Bloom filter is turned off for the column family");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue