PME duration histogram updates only if log info enabled
@@ -2317,6 +2317,9 @@ public class GridDhtPartitionsExchangeFuture extends GridDhtTopologyFutureAdapte
if (super.onDone(res, err)) {
afterLsnrCompleteFut.onDone();
+ if (err == null)
+ updateDurationHistogram(System.currentTimeMillis() - initTime);
+
if (log.isInfoEnabled()) {
log.info("Completed partition exchange [localNode=" + cctx.localNodeId() +
", exchange=" + (log.isDebugEnabled() ? this : shortInfo()) + ", topVer=" + topologyVersion() + "]");
@@ -2324,8 +2327,6 @@ public class GridDhtPartitionsExchangeFuture extends GridDhtTopologyFutureAdapte
if (err == null) {
timeBag.finishGlobalStage("Exchange done");
- updateDurationHistogram(System.currentTimeMillis() - initTime);
-
// Collect all stages timings.
List<String> timings = timeBag.stagesTimings();
