public InternalDistributedMember getPrimary() {
    InternalDistributedMember primary = getExistingPrimary();
    if (primary == null) {
      primary = waitForNewPrimary();
    }
    return primary;
  }
Blocks until there is a known primary and return that member, but only if there are real bucket
regions that exist. If there are no real bucket regions within the distribution config's
member-timeout setting * 3 (time required to eject a member) + 15000, then this returns null.

kbanks: reworked this method to avoid JIT issue #40639

@return the member who is primary for this bucket
geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java