public void endBucketCreate(long start, boolean success, boolean isRebalance) {
    long ts = clock.getTime();
    stats.incLong(bucketCreatesInProgressId, -1);
    if (clock.isEnabled()) {
      stats.incLong(bucketCreateTimeId, ts - start);
    }
    if (success) {
      stats.incLong(bucketCreatesCompletedId, 1);
    } else {
      stats.incLong(bucketCreatesFailedId, 1);
    }
    if (isRebalance) {
      endRebalanceBucketCreate(start, ts, success);
    }
  }
This method sets the end time for update and updates the counters
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegionStats.java