static void validateVersion(short version) {
    if (version < Replica_Metadata_Request_Version_V1 || version > Replica_Metadata_Request_Version_V2) {
      throw new IllegalArgumentException("Invalid replicametadata request version: " + version);
    }
  }
Replica metadata request to get new entries for replication
ambry-protocol/src/main/java/com/github/ambry/protocol/ReplicaMetadataRequest.java