ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladislav Pyatkov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-3495) CacheMetrics.getAverage###Time is not calculated properly
Date Tue, 26 Jul 2016 15:24:20 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-3495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15393942#comment-15393942
] 

Vladislav Pyatkov commented on IGNITE-3495:
-------------------------------------------

Unfortunately, there is metrics do not reflect real life.
Correction of the behavior leads to other issues it the current implementation of metrics.
By my assume, the interface requires a review and rework measure processing.
The task will be delayed until the interface will not be revised.

> CacheMetrics.getAverage###Time is not calculated properly
> ---------------------------------------------------------
>
>                 Key: IGNITE-3495
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3495
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Denis Magda
>            Assignee: Vladislav Pyatkov
>         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)

Mime
View raw message