static long getRepairRequestsCount(MysqlRepairRequestsDb repairRequestsDb) throws SQLException {
    DataSource dataSource = repairRequestsDb.getDataSource();
    long numberOfRows = 0;
    String rowQuerySql = "SELECT COUNT(*) as total FROM ambry_repair_requests";
    do {
      try (Connection connection = dataSource.getConnection()) {
        try (PreparedStatement statement = connection.prepareStatement(rowQuerySql)) {
          try (ResultSet result = statement.executeQuery()) {
            while (result.next()) {
              numberOfRows = result.getLong("total");
            }
          }
        }
      }
    } while (numberOfRows != 0);
    return numberOfRows;
  }
Get record count of the RepairRequests DB
@param repairRequestsDb the repair request db
@throws SQLException
ambry-router/src/test/java/com/github/ambry/router/NonBlockingRouterTest.java