HDDS-1832 : Improve logging for PipelineActions handling in SCM and datanode. (Change to Error logging)
Signed-off-by: Anu Engineer <aengineer@apache.org>
This commit is contained in:
parent
15545c8bf1
commit
fc229b6490
@ -558,7 +558,7 @@ private void triggerPipelineClose(RaftGroupId groupId, String detail,
|
|||||||
if (triggerHB) {
|
if (triggerHB) {
|
||||||
context.getParent().triggerHeartbeat();
|
context.getParent().triggerHeartbeat();
|
||||||
}
|
}
|
||||||
LOG.info(
|
LOG.error(
|
||||||
"pipeline Action " + action.getAction() + " on pipeline " + pipelineID
|
"pipeline Action " + action.getAction() + " on pipeline " + pipelineID
|
||||||
+ ".Reason : " + action.getClosePipeline().getDetailedReason());
|
+ ".Reason : " + action.getClosePipeline().getDetailedReason());
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ public void onMessage(PipelineActionsFromDatanode report,
|
|||||||
pipelineID = PipelineID.
|
pipelineID = PipelineID.
|
||||||
getFromProtobuf(action.getClosePipeline().getPipelineID());
|
getFromProtobuf(action.getClosePipeline().getPipelineID());
|
||||||
Pipeline pipeline = pipelineManager.getPipeline(pipelineID);
|
Pipeline pipeline = pipelineManager.getPipeline(pipelineID);
|
||||||
LOG.info("Received pipeline action {} for {} from datanode {}. " +
|
LOG.error("Received pipeline action {} for {} from datanode {}. " +
|
||||||
"Reason : {}", action.getAction(), pipeline,
|
"Reason : {}", action.getAction(), pipeline,
|
||||||
report.getDatanodeDetails(),
|
report.getDatanodeDetails(),
|
||||||
action.getClosePipeline().getDetailedReason());
|
action.getClosePipeline().getDetailedReason());
|
||||||
|
Loading…
Reference in New Issue
Block a user