ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [43/50] incubator-ignite git commit: # Return correct assert.
Date Mon, 13 Apr 2015 08:21:16 GMT
# Return correct assert.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/b39fd2a4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/b39fd2a4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/b39fd2a4

Branch: refs/heads/ignite-683-2
Commit: b39fd2a46350d7113cc0db411206dc47d4328aaf
Parents: b9273d0
Author: sevdokimov <sergey.evdokimov@jetbrains.com>
Authored: Sun Apr 12 13:21:36 2015 +0300
Committer: sevdokimov <sergey.evdokimov@jetbrains.com>
Committed: Sun Apr 12 13:21:48 2015 +0300

----------------------------------------------------------------------
 .../java/org/apache/ignite/internal/ClusterMetricsSnapshot.java   | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/b39fd2a4/modules/core/src/main/java/org/apache/ignite/internal/ClusterMetricsSnapshot.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/ClusterMetricsSnapshot.java
b/modules/core/src/main/java/org/apache/ignite/internal/ClusterMetricsSnapshot.java
index 0b27f12..4d5d146 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/ClusterMetricsSnapshot.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/ClusterMetricsSnapshot.java
@@ -1308,6 +1308,9 @@ public class ClusterMetricsSnapshot implements ClusterMetrics {
         buf.putInt(metrics.getOutboundMessagesQueueSize());
         buf.putInt(metrics.getTotalNodes());
 
+        assert !buf.hasRemaining() : "Invalid metrics size [expected=" + METRICS_SIZE + ",
actual="
+            + (buf.position() - off) + ']';
+
         return buf.position();
     }
 


Mime
View raw message