private InternalDistributedMember[] findPrimaryMembers() {
    Set<InternalDistributedMember> primaryMembers = adviseFilter(profile -> {
      assert profile instanceof BucketProfile;
      BucketProfile srp = (BucketProfile) profile;
      return srp.isPrimary;
    });
    if (primaryMembers.size() > 1 && logger.isDebugEnabled()) {
      logger.debug("[findPrimaryProfiles] found the following primary members for {}: {}",
          getAdvisee().getName(), primaryMembers);
    }
    return primaryMembers.toArray(new InternalDistributedMember[0]);
  }
Returns all {@link InternalDistributedMember}s currently flagged as primary.
<p>
Since profile messages may arrive out of order from different members, more than one member may
temporarily be flagged as primary.
<p>
The user of this BucketAdvisor should simply assume that the first profile is primary until the
dust settles, leaving only one primary profile.

@return zero or greater array of primary members
geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java