You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/04/08 13:28:00 UTC

[jira] [Commented] (IGNITE-8138) Incorrect uptime in Ignite metrics for long running server node (1+ days)

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

ASF GitHub Bot commented on IGNITE-8138:
----------------------------------------

GitHub user Co1l opened a pull request:

    https://github.com/apache/ignite/pull/3775

    IGNITE-8138 Uptime output with days

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gridgain/apache-ignite ignite-8138

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/ignite/pull/3775.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3775
    
----
commit ac3423ed9a23b153ad243489997559c40d7452cb
Author: Sergey Skudnov <se...@...>
Date:   2018-04-08T12:29:14Z

    IGNITE-8138 Uptime output with days

----


> Incorrect uptime in Ignite metrics for long running server node (1+ days)
> -------------------------------------------------------------------------
>
>                 Key: IGNITE-8138
>                 URL: https://issues.apache.org/jira/browse/IGNITE-8138
>             Project: Ignite
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 2.1, 2.4
>            Reporter: Max Shonichev
>            Assignee: Sergey Skudnov
>            Priority: Major
>             Fix For: 2.5
>
>
> Ignite prints a metrics to the log with uptime, formatted as 'XX:YY:ZZ:TTT'.
> It looks, like XX corresponds to hours, YY to minutes, ZZ to seconds, however if we filter uptime metric from a long running server (few days), we would see that :
> {noformat}
>  ^-- Node [id=684d2761, name=null, uptime=00:01:00:009]
>  ^-- Node [id=684d2761, name=null, uptime=00:02:00:009]
>  ^-- Node [id=684d2761, name=null, uptime=00:03:00:009]
>  ^-- Node [id=684d2761, name=null, uptime=00:04:00:021]
> ...
>  ^-- Node [id=684d2761, name=null, uptime=23:58:08:391]
>  ^-- Node [id=684d2761, name=null, uptime=23:59:08:393]
>  ^-- Node [id=684d2761, name=null, uptime=24:00:08:395]
>  ^-- Node [id=684d2761, name=null, uptime=24:01:08:406]
> ...
>  ^-- Node [id=684d2761, name=null, uptime=59:59:23:542]
>  ^-- Node [id=684d2761, name=null, uptime=00:00:23:554]
> ...
> {noformat}
> BUG:
> 1. hours do not rollover at 23:59:59
> 2. there's no simple means for user to get uptime days, because hours do actually rollover after 59:59:59
> what is expected: 
>  1. add a day counter, init with 0
>  2. make hours correctly rollover after full day (24hrs) run
> {noformat}
>  ^-- Node [id=684d2761, name=null, uptime=0:00:01:00:009]
> ...
>  ^-- Node [id=684d2761, name=null, uptime=0:23:59:00:009]
>  ^-- Node [id=684d2761, name=null, uptime=1:00:00:00:009]
> ...
> {noformat}



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