ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From voze...@apache.org
Subject [35/50] incubator-ignite git commit: # Bug fix: remove unnecessary assert.
Date Mon, 13 Apr 2015 12:24:02 GMT
# Bug fix: remove unnecessary 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/68643151
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/68643151
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/68643151

Branch: refs/heads/ignite-gg-9915
Commit: 686431517f816676ef5bd4d92a86807fb2cb77af
Parents: 54f4878
Author: sevdokimov <sergey.evdokimov@jetbrains.com>
Authored: Sun Apr 12 11:23:30 2015 +0300
Committer: sevdokimov <sergey.evdokimov@jetbrains.com>
Committed: Sun Apr 12 11:23:39 2015 +0300

----------------------------------------------------------------------
 .../org/apache/ignite/internal/ClusterMetricsSnapshot.java     | 6 ------
 1 file changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/68643151/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 8cfdd8a..0b27f12 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,9 +1308,6 @@ 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();
     }
 
@@ -1381,9 +1378,6 @@ public class ClusterMetricsSnapshot implements ClusterMetrics {
         metrics.setOutboundMessagesQueueSize(buf.getInt());
         metrics.setTotalNodes(buf.getInt());
 
-        assert !buf.hasRemaining() : "Invalid metrics size [expected=" + METRICS_SIZE + ",
actual="
-            + (buf.position() - off) + ']';
-
         return metrics;
     }
 


Mime
View raw message