Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-10833

Cluster widget doesn't show shutdown time for killed node correctly

    Details

    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      2
    • Sprint:
      OpenIDM Sprint 6.5-10.1

      Description

      Cluster widget doesn't show shutdown time for killed node correctly. I tried it with openidm 6.0.0-RC8 and I think that shutdown doesn't work correctly.
      If node is stopped correctly then there is correct shutdown time in node status but if node is stopped suddenly (node was killed) then shutdown status is empty but state has correct value .. (node is offline). So I did request to nodes:

      curl  --header "X-OpenIDM-Username: openidm-admin"  --header "X-OpenIDM-Password: openidm-admin"  --request GET  "http://localhost:9080/openidm/cluster?_queryId=query-cluster-instances" | jq .
      

      then I got this:

      "result": [
          {
            "_id": "node1",
            "instanceId": "node1",
            "startup": "2018-05-02T14:07:40.606Z",
            "shutdown": "",
            "state": "down",
            "recovery": {
              "recoveryFinished": "2018-05-02T14:09:42.035Z",
              "recoveredBy": "node2",
              "recoveryAttempts": 1,
              "recoveryStarted": "2018-05-02T14:09:42.020Z",
              "detectedDown": "2018-05-02T14:09:42.020Z"
            }
          },
          {
            "_id": "node2",
            "instanceId": "node2",
            "startup": "2018-05-02T14:07:52.111Z",
            "shutdown": "",
            "state": "running"
          }
        ],
        "resultCount": 2,
        "pagedResultsCookie": null,
        "totalPagedResultsPolicy": "NONE",
        "totalPagedResults": -1,
        "remainingPagedResults": -1
      }
      

      so you can see that node1 is offline and also there was detecting shutdown so by me and by Ladislav Folta we think that ui should be show time when shutdown was detected. Also this widget should be able to automatically deciding if it will show shutdown time or detectedDown time when it will depend by situation ...

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                javier.quiroz Javier Quiroz [X] (Inactive)
                Reporter:
                vojtech.oczka Vojtěch Oczka
                QA Assignee:
                Vojtěch Oczka
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: