diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java index a62748e6e6..e16a8f5e63 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java @@ -158,8 +158,9 @@ static public String getProtocolName(Class protocol) { /** * Get the protocol version from protocol class. - * If the protocol class has a ProtocolAnnotation, then get the protocol - * name from the annotation; otherwise the class name is the protocol name. + * If the protocol class has a ProtocolAnnotation, + * then get the protocol version from the annotation; + * otherwise get it from the versionID field of the protocol class. */ static public long getProtocolVersion(Class protocol) { if (protocol == null) {