ignite-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [ignite] NSAmelchev commented on a change in pull request #6701: IGNITE-11961 Provide JMX metrics for PME timings
Date Tue, 30 Jul 2019 12:07:56 GMT
NSAmelchev commented on a change in pull request #6701: IGNITE-11961  Provide JMX metrics for
PME timings
URL: https://github.com/apache/ignite/pull/6701#discussion_r308683172
 
 

 ##########
 File path: modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCachePartitionExchangeManager.java
 ##########
 @@ -2705,6 +2731,31 @@ else if (fut.isDone() && fut.topologyVersion().compareTo(from)
>= 0)
         return true;
     }
 
+    /**
+     * @param blocked {@code True} If take into account only cache operations blocked PME.
+     * @return Gets execution duration for current partition map exchange in milliseconds.
{@code 0} If there is no
+     * running PME or {@code blocked} was set to {@code true} and current PME don't block
cache operations.
+     */
+    private long getCurrentPMEDuration(boolean blocked) {
+        GridDhtPartitionsExchangeFuture fut = lastTopologyFuture();
+
+        return fut == null ? 0 : fut.getCurrentPMEDuration(blocked);
+    }
+
+    /**
+     * @return Histogram of PME durations metric.
+     */
+    public HistogramMetric getDurationHistogram() {
 
 Review comment:
   Thanks. Done.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message