@Override
  public void start(InternalPool pool) {
    this.pool = pool;
    pool.getStats().setInitialContacts((locators.get()).size());
    locatorUpdateInterval = Long.getLong(
        GeodeGlossary.GEMFIRE_PREFIX + "LOCATOR_UPDATE_INTERVAL", pool.getPingInterval());

    if (locatorUpdateInterval > 0) {
      pool.getBackgroundProcessor().scheduleWithFixedDelay(new UpdateLocatorListTask(), 0,
          locatorUpdateInterval, TimeUnit.MILLISECONDS);
      logger.info("AutoConnectionSource UpdateLocatorListTask started with interval={} ms.",
          locatorUpdateInterval);
    }
  }
This method will add bad locator only when locator with hostname and port is not already in
list.
geode-core/src/main/java/org/apache/geode/cache/client/internal/AutoConnectionSourceImpl.java