Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-8138

Incorrect uptime in Ignite metrics for long running server node (1+ days)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.4
    • Fix Version/s: 2.7
    • Component/s: general
    • Labels:
      None

      Description

      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 :

       ^-- 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]
      ...
      

      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

       ^-- 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]
      ...
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                coil Sergey Skudnov
                Reporter:
                mshonichev Max Shonichev
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: