public boolean isManagingBucket(int bucketId) {
    BucketRegion buk = localBucket2RegionMap.get(bucketId);
    return buk != null && !buk.isDestroyed();
  }
Test to determine if this data store is managing a bucket

@param bucketId the id of the bucket
@return true if the provided bucket is being managed
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegionDataStore.java