HADOOP-12428. Fix inconsistency between log-level guards and statements. Contributed by Jagadesh Kiran N and Jackie Chang.
(cherry picked from commit dfd807afab
)
This commit is contained in:
parent
4e752a37e7
commit
52cc2ca488
|
@ -276,6 +276,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
JarFile with other users when loading resource from URL in Configuration
|
JarFile with other users when loading resource from URL in Configuration
|
||||||
class. (zxu)
|
class. (zxu)
|
||||||
|
|
||||||
|
HADOOP-12428. Fix inconsistency between log-level guards and statements.
|
||||||
|
(Jagadesh Kiran N and Jackie Chang via ozawa)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HADOOP-11785. Reduce the number of listStatus operation in distcp
|
HADOOP-11785. Reduce the number of listStatus operation in distcp
|
||||||
|
|
|
@ -593,6 +593,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
HDFS-9111. Move hdfs-client protobuf convert methods from PBHelper to
|
HDFS-9111. Move hdfs-client protobuf convert methods from PBHelper to
|
||||||
PBHelperClient. (Mingliang Liu via wheat9)
|
PBHelperClient. (Mingliang Liu via wheat9)
|
||||||
|
|
||||||
|
HADOOP-12428. Fix inconsistency between log-level guards and statements.
|
||||||
|
(Jagadesh Kiran N and Jackie Chang via ozawa)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than
|
HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than
|
||||||
|
|
|
@ -752,7 +752,7 @@ class DataXceiver extends Receiver implements Runnable {
|
||||||
mirrorInStatus = connectAck.getStatus();
|
mirrorInStatus = connectAck.getStatus();
|
||||||
firstBadLink = connectAck.getFirstBadLink();
|
firstBadLink = connectAck.getFirstBadLink();
|
||||||
if (LOG.isDebugEnabled() || mirrorInStatus != SUCCESS) {
|
if (LOG.isDebugEnabled() || mirrorInStatus != SUCCESS) {
|
||||||
LOG.info("Datanode " + targets.length +
|
LOG.debug("Datanode " + targets.length +
|
||||||
" got response for connect ack " +
|
" got response for connect ack " +
|
||||||
" from downstream datanode with firstbadlink as " +
|
" from downstream datanode with firstbadlink as " +
|
||||||
firstBadLink);
|
firstBadLink);
|
||||||
|
@ -791,7 +791,7 @@ class DataXceiver extends Receiver implements Runnable {
|
||||||
// send connect-ack to source for clients and not transfer-RBW/Finalized
|
// send connect-ack to source for clients and not transfer-RBW/Finalized
|
||||||
if (isClient && !isTransfer) {
|
if (isClient && !isTransfer) {
|
||||||
if (LOG.isDebugEnabled() || mirrorInStatus != SUCCESS) {
|
if (LOG.isDebugEnabled() || mirrorInStatus != SUCCESS) {
|
||||||
LOG.info("Datanode " + targets.length +
|
LOG.debug("Datanode " + targets.length +
|
||||||
" forwarding connect ack to upstream firstbadlink is " +
|
" forwarding connect ack to upstream firstbadlink is " +
|
||||||
firstBadLink);
|
firstBadLink);
|
||||||
}
|
}
|
||||||
|
|
|
@ -213,7 +213,7 @@ public class BackupImage extends FSImage {
|
||||||
assert backupInputStream.length() == 0 : "backup input stream is not empty";
|
assert backupInputStream.length() == 0 : "backup input stream is not empty";
|
||||||
try {
|
try {
|
||||||
if (LOG.isTraceEnabled()) {
|
if (LOG.isTraceEnabled()) {
|
||||||
LOG.debug("data:" + StringUtils.byteToHexString(data));
|
LOG.trace("data:" + StringUtils.byteToHexString(data));
|
||||||
}
|
}
|
||||||
|
|
||||||
FSEditLogLoader logLoader =
|
FSEditLogLoader logLoader =
|
||||||
|
|
|
@ -359,7 +359,7 @@ public class BootstrapStandby implements Tool, Configurable {
|
||||||
"or call saveNamespace on the active node.\n" +
|
"or call saveNamespace on the active node.\n" +
|
||||||
"Error: " + e.getLocalizedMessage();
|
"Error: " + e.getLocalizedMessage();
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.fatal(msg, e);
|
LOG.debug(msg, e);
|
||||||
} else {
|
} else {
|
||||||
LOG.fatal(msg);
|
LOG.fatal(msg);
|
||||||
}
|
}
|
||||||
|
|
|
@ -237,7 +237,7 @@ public class EditLogTailer {
|
||||||
throw elie;
|
throw elie;
|
||||||
} finally {
|
} finally {
|
||||||
if (editsLoaded > 0 || LOG.isDebugEnabled()) {
|
if (editsLoaded > 0 || LOG.isDebugEnabled()) {
|
||||||
LOG.info(String.format("Loaded %d edits starting from txid %d ",
|
LOG.debug(String.format("Loaded %d edits starting from txid %d ",
|
||||||
editsLoaded, lastTxnId));
|
editsLoaded, lastTxnId));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,6 +115,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
MAPREDUCE-6483. Replace deprecated method NameNode.getUri() with
|
MAPREDUCE-6483. Replace deprecated method NameNode.getUri() with
|
||||||
DFSUtilClient.getNNUri() in TestMRCredentials. (Mingliang Liu via wheat9)
|
DFSUtilClient.getNNUri() in TestMRCredentials. (Mingliang Liu via wheat9)
|
||||||
|
|
||||||
|
HADOOP-12428. Fix inconsistency between log-level guards and statements.
|
||||||
|
(Jagadesh Kiran N and Jackie Chang via ozawa)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
MAPREDUCE-6376. Add avro binary support for jhist files (Ray Chiang via
|
MAPREDUCE-6376. Add avro binary support for jhist files (Ray Chiang via
|
||||||
|
|
|
@ -1102,7 +1102,7 @@ public class RMContainerAllocator extends RMContainerRequestor
|
||||||
assignedRequests.add(allocated, assigned.attemptID);
|
assignedRequests.add(allocated, assigned.attemptID);
|
||||||
|
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.info("Assigned container (" + allocated + ") "
|
LOG.debug("Assigned container (" + allocated + ") "
|
||||||
+ " to task " + assigned.attemptID + " on node "
|
+ " to task " + assigned.attemptID + " on node "
|
||||||
+ allocated.getNodeId().toString());
|
+ allocated.getNodeId().toString());
|
||||||
}
|
}
|
||||||
|
|
|
@ -506,7 +506,7 @@ public abstract class RMContainerRequestor extends RMCommunicator {
|
||||||
addResourceRequestToAsk(remoteRequest);
|
addResourceRequestToAsk(remoteRequest);
|
||||||
|
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.info("AFTER decResourceRequest:" + " applicationId="
|
LOG.debug("AFTER decResourceRequest:" + " applicationId="
|
||||||
+ applicationId.getId() + " priority=" + priority.getPriority()
|
+ applicationId.getId() + " priority=" + priority.getPriority()
|
||||||
+ " resourceName=" + resourceName + " numContainers="
|
+ " resourceName=" + resourceName + " numContainers="
|
||||||
+ remoteRequest.getNumContainers() + " #asks=" + ask.size());
|
+ remoteRequest.getNumContainers() + " #asks=" + ask.size());
|
||||||
|
|
|
@ -112,7 +112,8 @@ public class UniformSizeInputFormat
|
||||||
FileSplit split = new FileSplit(listingFilePath, lastSplitStart,
|
FileSplit split = new FileSplit(listingFilePath, lastSplitStart,
|
||||||
lastPosition - lastSplitStart, null);
|
lastPosition - lastSplitStart, null);
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.info ("Creating split : " + split + ", bytes in split: " + currentSplitSize);
|
LOG.debug("Creating split : " + split + ", bytes in split: "
|
||||||
|
+ currentSplitSize);
|
||||||
}
|
}
|
||||||
splits.add(split);
|
splits.add(split);
|
||||||
}
|
}
|
||||||
|
|
|
@ -130,7 +130,7 @@ public class SerialJobFactory extends JobFactory<JobStats> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.info(" job " + job.getName() + " completed ");
|
LOG.debug(" job " + job.getName() + " completed ");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -405,6 +405,9 @@ Release 2.8.0 - UNRELEASED
|
||||||
YARN-3920. FairScheduler container reservation on a node should be
|
YARN-3920. FairScheduler container reservation on a node should be
|
||||||
configurable to limit it to large containers (adhoot via asuresh)
|
configurable to limit it to large containers (adhoot via asuresh)
|
||||||
|
|
||||||
|
HADOOP-12428. Fix inconsistency between log-level guards and statements.
|
||||||
|
(Jagadesh Kiran N and Jackie Chang via ozawa)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
YARN-3339. TestDockerContainerExecutor should pull a single image and not
|
YARN-3339. TestDockerContainerExecutor should pull a single image and not
|
||||||
|
|
|
@ -748,7 +748,7 @@ public class AMRMClientImpl<T extends ContainerRequest> extends AMRMClient<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.info("AFTER decResourceRequest:" + " applicationId="
|
LOG.debug("AFTER decResourceRequest:" + " applicationId="
|
||||||
+ " priority=" + priority.getPriority()
|
+ " priority=" + priority.getPriority()
|
||||||
+ " resourceName=" + resourceName + " numContainers="
|
+ " resourceName=" + resourceName + " numContainers="
|
||||||
+ resourceRequestInfo.remoteRequest.getNumContainers()
|
+ resourceRequestInfo.remoteRequest.getNumContainers()
|
||||||
|
|
|
@ -46,7 +46,7 @@ public class ContainerTokenSelector implements
|
||||||
}
|
}
|
||||||
for (Token<? extends TokenIdentifier> token : tokens) {
|
for (Token<? extends TokenIdentifier> token : tokens) {
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.info("Looking for service: " + service + ". Current token is "
|
LOG.debug("Looking for service: " + service + ". Current token is "
|
||||||
+ token);
|
+ token);
|
||||||
}
|
}
|
||||||
if (ContainerTokenIdentifier.KIND.equals(token.getKind()) &&
|
if (ContainerTokenIdentifier.KIND.equals(token.getKind()) &&
|
||||||
|
|
|
@ -42,7 +42,7 @@ public class NMTokenSelector implements
|
||||||
}
|
}
|
||||||
for (Token<? extends TokenIdentifier> token : tokens) {
|
for (Token<? extends TokenIdentifier> token : tokens) {
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.info("Looking for service: " + service + ". Current token is "
|
LOG.debug("Looking for service: " + service + ". Current token is "
|
||||||
+ token);
|
+ token);
|
||||||
}
|
}
|
||||||
if (NMTokenIdentifier.KIND.equals(token.getKind()) &&
|
if (NMTokenIdentifier.KIND.equals(token.getKind()) &&
|
||||||
|
|
|
@ -1163,7 +1163,7 @@ public class LeafQueue extends AbstractCSQueue {
|
||||||
metrics.setAvailableResourcesToUser(userName, application.getHeadroom());
|
metrics.setAvailableResourcesToUser(userName, application.getHeadroom());
|
||||||
|
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.info(getQueueName() +
|
LOG.debug(getQueueName() +
|
||||||
" user=" + userName +
|
" user=" + userName +
|
||||||
" used=" + queueUsage.getUsed() + " numContainers=" + numContainers +
|
" used=" + queueUsage.getUsed() + " numContainers=" + numContainers +
|
||||||
" headroom = " + application.getHeadroom() +
|
" headroom = " + application.getHeadroom() +
|
||||||
|
|
Loading…
Reference in New Issue