Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4F793200B64 for ; Tue, 2 Aug 2016 18:08:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4E0CB160A76; Tue, 2 Aug 2016 16:08:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B630F160A65 for ; Tue, 2 Aug 2016 18:08:26 +0200 (CEST) Received: (qmail 76057 invoked by uid 500); 2 Aug 2016 16:08:20 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 75868 invoked by uid 99); 2 Aug 2016 16:08:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2016 16:08:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 933612C0D62 for ; Tue, 2 Aug 2016 16:08:20 +0000 (UTC) Date: Tue, 2 Aug 2016 16:08:20 +0000 (UTC) From: "Denis Magda (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (IGNITE-3495) CacheMetrics.getAverage###Time is not calculated properly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 02 Aug 2016 16:08:27 -0000 [ https://issues.apache.org/jira/browse/IGNITE-3495?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Denis Magda updated IGNITE-3495: -------------------------------- Fix Version/s: 2.0 > CacheMetrics.getAverage###Time is not calculated properly > --------------------------------------------------------- > > Key: IGNITE-3495 > URL: https://issues.apache.org/jira/browse/IGNITE-3495 > Project: Ignite > Issue Type: Bug > Affects Versions: 1.6 > Reporter: Denis Magda > Assignee: Vladislav Pyatkov > Fix For: 2.0 > > Attachments: ExampleNodeStartupClient.java, IGNITE_3495.patch, example-default.xml > > > {{CacheMetrics.getAverageGetTime}}, {{CacheMetrics.getAveragePutTime}} and {{CacheMetrics.getAverageRemoveTime}} are not calculated properly in the following scenario: > - start a server node; > - start a client node that will perform gets and puts; > - {{CacheMetrics.getAverage###Time}} will always be 0 for the server node's cluster group. > The issue happens because {{CacheMetricsImpl.add###TimeNanos}} method is not called on the server side when a metric related event happens. > In the attache you can find source that showcases the bug. > - start basic {{ExampleNodeStartup}} using attached configuration {{example-default.xml}} conjuration; > - start {{ExampleNodeStartupClient}}. You will see that average metrics are not incremented. -- This message was sent by Atlassian JIRA (v6.3.4#6332)