static void validateVersion(short version) {
    if (version < REPLICA_METADATA_RESPONSE_VERSION_V_1 || version > REPLICA_METADATA_RESPONSE_VERSION_V_6) {
      throw new IllegalArgumentException("Invalid replica metadata response version: " + version);
    }
  }
validate that the version is valid.
@param version to validate
ambry-protocol/src/main/java/com/github/ambry/protocol/ReplicaMetadataResponse.java