From 2d06112b74c1f797db1f2b4884c1de4485b15dfa Mon Sep 17 00:00:00 2001 From: Yiqun Lin Date: Tue, 29 Jan 2019 11:26:41 +0800 Subject: [PATCH] HDDS-1022. Add cmd type in getCommandResponse in SCMDatanodeProtocolServer. Contributed by Bharat Viswanadham. --- .../hadoop/hdds/scm/server/SCMDatanodeProtocolServer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMDatanodeProtocolServer.java b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMDatanodeProtocolServer.java index 6a3552ef632..06a4a86fb2d 100644 --- a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMDatanodeProtocolServer.java +++ b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMDatanodeProtocolServer.java @@ -342,7 +342,8 @@ public class SCMDatanodeProtocolServer implements ((ReplicateContainerCommand)cmd).getProto()) .build(); default: - throw new IllegalArgumentException("Not implemented"); + throw new IllegalArgumentException("Scm command " + + cmd.getType().toString() + " is not implemented"); } }