HDDS-1832 : Improve logging for PipelineActions handling in SCM and datanode. (#1200)
This commit is contained in:
parent
946e301731
commit
6e8c8413ee
@ -558,7 +558,7 @@ private void triggerPipelineClose(RaftGroupId groupId, String detail,
|
||||
if (triggerHB) {
|
||||
context.getParent().triggerHeartbeat();
|
||||
}
|
||||
LOG.debug(
|
||||
LOG.info(
|
||||
"pipeline Action " + action.getAction() + " on pipeline " + pipelineID
|
||||
+ ".Reason : " + action.getClosePipeline().getDetailedReason());
|
||||
}
|
||||
|
@ -57,9 +57,10 @@ public void onMessage(PipelineActionsFromDatanode report,
|
||||
pipelineID = PipelineID.
|
||||
getFromProtobuf(action.getClosePipeline().getPipelineID());
|
||||
Pipeline pipeline = pipelineManager.getPipeline(pipelineID);
|
||||
LOG.info("Received pipeline action {} for {} from datanode {}",
|
||||
action.getAction(), pipeline, report.getDatanodeDetails());
|
||||
pipelineManager.finalizeAndDestroyPipeline(pipeline, true);
|
||||
LOG.info("Received pipeline action {} for {} from datanode {}. " +
|
||||
"Reason : {}", action.getAction(), pipeline,
|
||||
report.getDatanodeDetails(),
|
||||
action.getClosePipeline().getDetailedReason());
|
||||
} catch (IOException ioe) {
|
||||
LOG.error("Could not execute pipeline action={} pipeline={} {}",
|
||||
action, pipelineID, ioe);
|
||||
|
Loading…
Reference in New Issue
Block a user