public List<Integer> getLocalPrimaryBucketsListTestOnly() {
    List<Integer> localPrimaryList = null;
    if (dataStore != null) {
      localPrimaryList = dataStore.getLocalPrimaryBucketsListTestOnly();
    }
    return localPrimaryList;
  }
A test method to get the list of all the primary bucket ids for the partitioned region in the
data Store.
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java