nandakumar131 commented on a change in pull request #711: HDDS-1368. Cleanup
old ReplicationManager code from SCM.
URL: https://github.com/apache/hadoop/pull/711#discussion_r276112100
##########
File path:
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/command/CommandStatusReportHandler.java
##########
@@ -54,32 +55,14 @@ public void onMessage(CommandStatusReportFromDatanode
report,
cmdStatusList.forEach(cmdStatus -> {
LOGGER.trace("Emitting command status for id:{} type: {}", cmdStatus
.getCmdId(), cmdStatus.getType());
- switch (cmdStatus.getType()) {
- case replicateContainerCommand:
- publisher.fireEvent(SCMEvents.REPLICATION_STATUS, new
- ReplicationStatus(cmdStatus));
- if (cmdStatus.getStatus() == CommandStatus.Status.EXECUTED) {
- publisher.fireEvent(SCMEvents.REPLICATION_COMPLETE,
- new ReplicationManager.ReplicationCompleted(
- cmdStatus.getCmdId()));
- }
- break;
- case deleteBlocksCommand:
+ if (cmdStatus.getType() == SCMCommandProto.Type.deleteBlocksCommand) {
Review comment:
Yes, no other command uses CommandWatcher anymore.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]