Set<Long> getPartitionIdsNeedRepair() throws SQLException {
    // each server has 12 * 23 partition. right now search in one single query.
    return db.getPartitionsNeedRepair(nodeId.getHostname(), nodeId.getPort(), partitionIds);
  }
Get partitions which have RepairRequests to fix
@return list of partition ids.
ambry-server/src/main/java/com/github/ambry/server/RepairRequestsSender.java