code: public static void setBadHostsAndRacks(Set<String> racks,
                                           Set<String> hosts) {
      badRacks = racks;
      badHosts = hosts;
    }
docs: A function to be used by unit tests only