Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CA5DB17E35 for ; Mon, 13 Apr 2015 12:24:03 +0000 (UTC) Received: (qmail 21624 invoked by uid 500); 13 Apr 2015 12:24:03 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 21598 invoked by uid 500); 13 Apr 2015 12:24:03 -0000 Mailing-List: contact commits-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list commits@ignite.incubator.apache.org Received: (qmail 21516 invoked by uid 99); 13 Apr 2015 12:24:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2015 12:24:03 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 13 Apr 2015 12:23:41 +0000 Received: (qmail 18266 invoked by uid 99); 13 Apr 2015 12:23:29 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Apr 2015 12:23:29 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 9ABDAE0AB7; Mon, 13 Apr 2015 12:23:29 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vozerov@apache.org To: commits@ignite.incubator.apache.org Date: Mon, 13 Apr 2015 12:24:02 -0000 Message-Id: <6d83bfa60924451d97ccd806d8e037a0@git.apache.org> In-Reply-To: <3a341a894e514edf9d4104fbed431bc4@git.apache.org> References: <3a341a894e514edf9d4104fbed431bc4@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [35/50] incubator-ignite git commit: # Bug fix: remove unnecessary assert. X-Virus-Checked: Checked by ClamAV on apache.org # 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 Authored: Sun Apr 12 11:23:30 2015 +0300 Committer: sevdokimov 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; }