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

Roman Guseinov commented on IGNITE-8645:
----------------------------------------

[~Alexey Kuznetsov], thank you for the comment. I think it can be used as a 
workaround:
{code:java}
cache.metrics(grid.cluster().forCacheNodes(cache.getName())).getCacheTxCommits(){code}
But when we call `ignite.cache(CACHE_NAME).metrics()` we expect to *'Get whole 
cluster snapshot metrics (statistics) for this cache*' (JavaDoc) not only 
metrics from server nodes 
[https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/IgniteCache.java#L1469]

Maybe it is obvious behavior for developers but not for users.

 

> CacheMetrics.getCacheTxCommits() doesn't include transactions started on 
> client node
> ------------------------------------------------------------------------------------
>
>                 Key: IGNITE-8645
>                 URL: https://issues.apache.org/jira/browse/IGNITE-8645
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: 2.4
>            Reporter: Roman Guseinov
>            Assignee: Alexey Kuznetsov
>            Priority: Major
>         Attachments: CacheTxCommitsMetricTest.java
>
>
> The test is attached [^CacheTxCommitsMetricTest.java]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to