void tryLockIfPrimary() {
    if (isPrimary()) {
      try {
        primaryMoveWriteLock.lock();
      } finally {
        primaryMoveWriteLock.unlock();
      }
    }
  }
Try to lock the primary bucket to make sure no operation is on-going at current bucket.
geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java