Skip to content

Commit

Permalink
HDDS-1832 : Improve logging for PipelineActions handling in SCM and d…
Browse files Browse the repository at this point in the history
…atanode. (#1200)
  • Loading branch information
avijayanhwx authored and bshashikant committed Aug 2, 2019
1 parent 946e301 commit 6e8c841
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6e8c841

Please sign in to comment.