Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public synchronized void close() {
try {
scheduledExecutorService.awaitTermination(60, TimeUnit.SECONDS);
} catch (InterruptedException e) {
LOG.info("{} interrupted while waiting for task completion {}",
LOG.info("{} interrupted while waiting for task completion.",
threadName, e);
// Re-interrupt the thread while catching InterruptedException
Thread.currentThread().interrupt();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public static boolean checkVolume(HddsVolume hddsVolume, String scmId, String
try {
hddsVolume.format(clusterId);
} catch (IOException ex) {
logger.error("Error during formatting volume {}, exception is {}",
logger.error("Error during formatting volume {}.",
volumeRoot, ex);
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public void onMessage(final ContainerReportFromDatanode reportFromDatanode,
containerManager.notifyContainerReportProcessing(true, true);
} catch (NodeNotFoundException ex) {
containerManager.notifyContainerReportProcessing(true, false);
LOG.error("Received container report from unknown datanode {} {}",
LOG.error("Received container report from unknown datanode {}.",
datanodeDetails, ex);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ public ContainerInfo getMatchingContainer(final long sizeRequired,
return containerInfo;
}
} catch (Exception e) {
LOG.warn("Container allocation failed for pipeline={} requiredSize={} {}",
LOG.warn("Container allocation failed for pipeline={} requiredSize={}.",
pipeline, sizeRequired, e);
return null;
}
Expand Down Expand Up @@ -519,7 +519,7 @@ private NavigableSet<ContainerID> getContainersForOwner(
containerIDIterator.remove();
}
} catch (ContainerNotFoundException e) {
LOG.error("Could not find container info for container id={} {}", cid,
LOG.error("Could not find container info for container id={}.", cid,
e);
containerIDIterator.remove();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private void createPipelines() {
try {
pipelineManager.scrubPipeline(type, factor);
} catch (IOException e) {
LOG.error("Error while scrubbing pipelines {}", e);
LOG.error("Error while scrubbing pipelines.", e);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void onMessage(PipelineReportFromDatanode pipelineReportFromDatanode,
try {
processPipelineReport(report, dn, publisher);
} catch (IOException e) {
LOGGER.error("Could not process pipeline report={} from dn={} {}",
LOGGER.error("Could not process pipeline report={} from dn={}.",
report, dn, e);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ public List<OzoneAcl> getAcl(OzoneObj obj) throws IOException {
return bucketInfo.getAcls();
} catch (IOException ex) {
if (!(ex instanceof OMException)) {
LOG.error("Get acl operation failed for bucket:{}/{} acl:{}",
LOG.error("Get acl operation failed for bucket:{}/{}.",
volume, bucket, ex);
}
throw ex;
Expand Down Expand Up @@ -607,7 +607,7 @@ public boolean checkAccess(OzoneObj ozObject, RequestContext context)
if(ex instanceof OMException) {
throw (OMException) ex;
}
LOG.error("CheckAccess operation failed for bucket:{}/{} acl:{}",
LOG.error("CheckAccess operation failed for bucket:{}/{}.",
volume, bucket, ex);
throw new OMException("Check access operation failed for " +
"bucket:" + bucket, ex, INTERNAL_ERROR);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ public void start(OzoneConfiguration configuration) throws IOException {
// the OM process should be terminated.
File markerFile = new File(metaDir, DB_TRANSIENT_MARKER);
if (markerFile.exists()) {
LOG.error("File {} marks that OM DB is in an inconsistent state.");
LOG.error("File {} marks that OM DB is in an inconsistent state.",
markerFile);
// Note - The marker file should be deleted only after fixing the DB.
// In an HA setup, this can be done by replacing this DB with a
// checkpoint from another OM.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3124,7 +3124,7 @@ public TermIndex installSnapshotFromLeader(String leaderId) {
try {
termIndex = installCheckpoint(leaderId, omDBCheckpoint);
} catch (Exception ex) {
LOG.error("Failed to install snapshot from Leader OM: {}", ex);
LOG.error("Failed to install snapshot from Leader OM.", ex);
}
return termIndex;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public OMClientResponse validateAndUpdateCache(OzoneManager ozoneManager,
bucketName, keyName);
break;
case FAILURE:
LOG.error("File create failed. Volume:{}, Bucket:{}, Key{}. Exception:{}",
LOG.error("File create failed. Volume:{}, Bucket:{}, Key{}.",
volumeName, bucketName, keyName, exception);
break;
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public OMClientResponse validateAndUpdateCache(OzoneManager ozoneManager,
bucketName, keyName);
break;
case FAILURE:
LOG.error("Key commit failed. Volume:{}, Bucket:{}, Key:{}. Exception:{}",
LOG.error("Key commit failed. Volume:{}, Bucket:{}, Key:{}.",
volumeName, bucketName, keyName, exception);
omMetrics.incNumKeyCommitFails();
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ public void run() {

}
} catch (InterruptedException ie) {
LOG.error("ExpiredTokenRemover received {}", ie);
LOG.info("ExpiredTokenRemover was interrupted.", ie);
Thread.currentThread().interrupt();
} catch (Exception t) {
LOG.error("ExpiredTokenRemover thread received unexpected exception",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void createReconSchema() {
try {
reconSchemaDefinition.initializeSchema();
} catch (SQLException e) {
LOG.error("Error creating Recon schema {} : {}",
LOG.error("Error creating Recon schema {}.",
reconSchemaDefinition.getClass().getSimpleName(), e);
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void onMessage(final IncrementalContainerReportFromDatanode report,
LOG.warn("Container {} not found!", replicaProto.getContainerID());
} catch (NodeNotFoundException ex) {
success = false;
LOG.error("Received ICR from unknown datanode {} {}",
LOG.error("Received ICR from unknown datanode {}.",
report.getDatanodeDetails(), ex);
} catch (IOException e) {
success = false;
Expand Down