private boolean hasPrimary() {
    final byte primaryState = this.primaryState;
    return primaryState == OTHER_PRIMARY_NOT_HOSTING || primaryState == OTHER_PRIMARY_HOSTING
        || primaryState == IS_PRIMARY_HOSTING;
  }
Returns true if the a primary is known.
geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java