public <T> T computeWithPrimaryLocked(Object key, Callable<T> callable) throws Exception {
    int bucketId = PartitionedRegionHelper.getHashKey(this, null, key, null, null);

    BucketRegion br;
    try {
      br = dataStore.getInitializedBucketForId(key, bucketId);
    } catch (ForceReattemptException e) {
      throw new BucketMovedException(e);
    }

    try {
      br.doLockForPrimary(false);
    } catch (PrimaryBucketException e) {
      throw new PrimaryBucketLockException("retry since primary lock failed: " + e);
    }

    try {
      return callable.call();
    } finally {
      br.doUnlockForPrimary();
    }
  }
Clear the prIdMap, typically used when disconnecting from the distributed system or clearing
the cache
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegion.java