static byte[] readPartitionBytesFromStream(InputStream stream) throws IOException {
    return Utils.readBytesFromStream(stream, PARTITION_SIZE_IN_BYTES);
  }
Return the byte representation of the partition id from the given stream.
@param stream the {@link DataInputStream} containing the id
@return the byte representation fo the partition id.
@throws IOException if the read from the stream encounters an IOException.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/AmbryPartition.java