Time units of AverageTxCommitTime and AverageTxRollbackTime in CacheMetrics.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Time units of AverageTxCommitTime and AverageTxRollbackTime in CacheMetrics.

Pavel Pereslegin
Hello, Igniters.


I found that AverageTxCommitTime and AverageTxRollbackTime metrics in
CacheMetrics calculated in milliseconds instead of microseconds as
pointed in javadoc (simple reproducer [1]).


Seems that it’s happening due to incorrect time units conversion in
IgniteTxLocalStateAdapter#onTxEnd.


Should I create a ticket to fix this?


[1] https://github.com/xtern/ignite/blob/ignite-reproducer/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheMetricsTxAvgTimeTest.java
Reply | Threaded
Open this post in threaded view
|

Re: Time units of AverageTxCommitTime and AverageTxRollbackTime in CacheMetrics.

dsetrakyan
Absolutely, create a ticket. It would be even better if you picked it up
and contributed a fix :)

On Wed, Oct 11, 2017 at 6:06 AM, Pavel Pereslegin <[hidden email]> wrote:

> Hello, Igniters.
>
>
> I found that AverageTxCommitTime and AverageTxRollbackTime metrics in
> CacheMetrics calculated in milliseconds instead of microseconds as
> pointed in javadoc (simple reproducer [1]).
>
>
> Seems that it’s happening due to incorrect time units conversion in
> IgniteTxLocalStateAdapter#onTxEnd.
>
>
> Should I create a ticket to fix this?


>
> [1] https://github.com/xtern/ignite/blob/ignite-reproducer/
> modules/core/src/test/java/org/apache/ignite/internal/processors/cache/
> CacheMetricsTxAvgTimeTest.java
>