HBASE-8305 Too much logs in the some tests
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1466117 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
62e020a997
commit
52343c5516
|
@ -950,9 +950,6 @@ public class HRegionInfo implements Comparable<HRegionInfo> {
|
|||
data.getValue(HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER);
|
||||
if (bytes == null) return null;
|
||||
HRegionInfo info = parseFromOrNull(bytes);
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Current INFO from scan results = " + info);
|
||||
}
|
||||
return info;
|
||||
}
|
||||
|
||||
|
|
|
@ -1873,7 +1873,7 @@ public class HConnectionManager {
|
|||
*/
|
||||
void deleteCachedLocation(HRegionInfo hri, HRegionLocation source) {
|
||||
boolean isStaleDelete = false;
|
||||
HRegionLocation oldLocation = null;
|
||||
HRegionLocation oldLocation;
|
||||
synchronized (this.cachedRegionLocations) {
|
||||
Map<byte[], HRegionLocation> tableLocations =
|
||||
getTableLocations(hri.getTableName());
|
||||
|
@ -1886,11 +1886,6 @@ public class HConnectionManager {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (isStaleDelete) {
|
||||
LOG.debug("Received an error from " + source.getHostnamePort() + " for region "
|
||||
+ hri.getRegionNameAsString() + "; not removing "
|
||||
+ oldLocation.getHostnamePort() + " from cache.");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -247,8 +247,8 @@ public class MetaScanner {
|
|||
data.getValue(HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER);
|
||||
if (bytes == null) return null;
|
||||
HRegionInfo info = HRegionInfo.parseFromOrNull(bytes);
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Current INFO from scan results = " + info);
|
||||
if (LOG.isTraceEnabled()) {
|
||||
LOG.trace("Current INFO from scan results = " + info);
|
||||
}
|
||||
return info;
|
||||
}
|
||||
|
|
|
@ -970,8 +970,8 @@ public class HBaseClient {
|
|||
synchronized (this.out) { // FindBugs IS2_INCONSISTENT_SYNC
|
||||
IPCUtil.write(this.out, header, call.param, cellBlock);
|
||||
}
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug(getName() + ": wrote request header " + TextFormat.shortDebugString(header));
|
||||
if (LOG.isTraceEnabled()) {
|
||||
LOG.trace(getName() + ": wrote request header " + TextFormat.shortDebugString(header));
|
||||
}
|
||||
} catch(IOException e) {
|
||||
markClosed(e);
|
||||
|
|
|
@ -1676,8 +1676,8 @@ public class ZKUtil {
|
|||
|
||||
private static void logRetrievedMsg(final ZooKeeperWatcher zkw,
|
||||
final String znode, final byte [] data, final boolean watcherSet) {
|
||||
if (!LOG.isDebugEnabled()) return;
|
||||
LOG.debug(zkw.prefix("Retrieved " + ((data == null)? 0: data.length) +
|
||||
if (!LOG.isTraceEnabled()) return;
|
||||
LOG.trace(zkw.prefix("Retrieved " + ((data == null)? 0: data.length) +
|
||||
" byte(s) of data from znode " + znode +
|
||||
(watcherSet? " and set watcher; ": "; data=") +
|
||||
(data == null? "null": data.length == 0? "empty": (
|
||||
|
|
|
@ -1193,7 +1193,7 @@ Server {
|
|||
RpcController controller, ReportRSFatalErrorRequest request) throws ServiceException {
|
||||
String errorText = request.getErrorMessage();
|
||||
ServerName sn = ProtobufUtil.toServerName(request.getServer());
|
||||
String msg = "Region server " + Bytes.toString(sn.getVersionedBytes()) +
|
||||
String msg = "Region server " + sn +
|
||||
" reported a fatal error:\n" + errorText;
|
||||
LOG.error(msg);
|
||||
rsFatals.add(msg);
|
||||
|
|
|
@ -84,9 +84,6 @@ public class TestAdmin {
|
|||
|
||||
@BeforeClass
|
||||
public static void setUpBeforeClass() throws Exception {
|
||||
((Log4JLogger)HBaseServer.LOG).getLogger().setLevel(Level.ALL);
|
||||
((Log4JLogger)HBaseClient.LOG).getLogger().setLevel(Level.ALL);
|
||||
((Log4JLogger)ScannerCallable.LOG).getLogger().setLevel(Level.ALL);
|
||||
TEST_UTIL.getConfiguration().setBoolean("hbase.online.schema.update.enable", true);
|
||||
TEST_UTIL.getConfiguration().setInt("hbase.regionserver.msginterval", 100);
|
||||
TEST_UTIL.getConfiguration().setInt("hbase.client.pause", 250);
|
||||
|
|
|
@ -61,7 +61,6 @@ public class TestLogRollAbort {
|
|||
((Log4JLogger)LeaseManager.LOG).getLogger().setLevel(Level.ALL);
|
||||
((Log4JLogger)LogFactory.getLog("org.apache.hadoop.hdfs.server.namenode.FSNamesystem"))
|
||||
.getLogger().setLevel(Level.ALL);
|
||||
((Log4JLogger)DFSClient.LOG).getLogger().setLevel(Level.ALL);
|
||||
((Log4JLogger)HRegionServer.LOG).getLogger().setLevel(Level.ALL);
|
||||
((Log4JLogger)HRegion.LOG).getLogger().setLevel(Level.ALL);
|
||||
((Log4JLogger)HLog.LOG).getLogger().setLevel(Level.ALL);
|
||||
|
|
Loading…
Reference in New Issue