private void endRebalanceBucketCreate(long start, long end, boolean success) {
    stats.incLong(rebalanceBucketCreatesInProgressId, -1);
    if (clock.isEnabled()) {
      stats.incLong(rebalanceBucketCreateTimeId, end - start);
    }
    if (success) {
      stats.incLong(rebalanceBucketCreatesCompletedId, 1);
    } else {
      stats.incLong(rebalanceBucketCreatesFailedId, 1);
    }
  }
This method sets the end time for update and updates the counters
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegionStats.java