code: public Set<String> getAllRacks() {
      netlock.readLock().lock();
      try {
        Set<String> result = new HashSet<String>(this.racks);
        result.addAll(this.masterRacksSet);
        return result;
      } finally {
        netlock.readLock().unlock();
      }
    }
docs: Returns the set of racks