Uploaded image for project: 'Apache Trafodion'
  1. Apache Trafodion
  2. TRAFODION-1163

LP Bug: 1443263 - DTM rest api doesn't return a valid json string

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1 (pre-incubation)
    • Component/s: dtm
    • Labels:
      None

      Description

      When there are some TM processes down, the dtmci will show the following:

      DTMCI > status tm
      Node LeadTM State SysRec ShutdownLevel Incarn Txns IsolTM RMs
      0 true UP END RUNNING 3 0 false 0
      ,1 false UP END RUNNING 3 0 false 0
      ,2 false UP END RUNNING 3 1 false 0
      ,3 false UP END RUNNING 3 0 false 0
      ,4 TM process down. Returned error: 82
      ,5 false UP END RUNNING 3 0 false 0
      ,6 false UP END RUNNING 3 0 false 0
      ,7 false UP END RUNNING 3 0 false 0
      ,8 TM process down. Returned error: 82
      ,9 false UP END RUNNING 3 0 false 0
      ,10 false UP END RUNNING 3 0 false 0

      I use rest api to check dtm status, but I don’t think the output is a valid json string.

      curl --noproxy sq1176.houston.hp.com -X GET -H "Accept: application/json" http://sq1176.houston.hp.com:4200/v1/transactions/tm

      [

      {"node":0, "isLeadTM":true, "state":"UP", "sys_recovery_state":"END", "tmshutdown_level":"RUNNING", "number_active_txns":0}

      ,

      {"node":1, "isLeadTM":false, "state":"UP", "sys_recovery_state":"END", "tmshutdown_level":"RUNNING", "number_active_txns":0}

      ,

      {"node":2, "isLeadTM":false, "state":"UP", "sys_recovery_state":"END", "tmshutdown_level":"RUNNING", "number_active_txns":1}

      ,

      {"node":3, "isLeadTM":false, "state":"UP", "sys_recovery_state":"END", "tmshutdown_level":"RUNNING", "number_active_txns":0}

      ,
      4 TM process down. Returned error: 82,

      {"node":5, "isLeadTM":false, "state":"UP", "sys_recovery_state":"END", "tmshutdown_level":"RUNNING", "number_active_txns":0}

      ,

      {"node":6, "isLeadTM":false, "state":"UP", "sys_recovery_state":"END", "tmshutdown_level":"RUNNING", "number_active_txns":0}

      ,

      {"node":7, "isLeadTM":false, "state":"UP", "sys_recovery_state":"END", "tmshutdown_level":"RUNNING", "number_active_txns":0}

      ,
      8 TM process down. Returned error: 82,

      {"node":9, "isLeadTM":false, "state":"UP", "sys_recovery_state":"END", "tmshutdown_level":"RUNNING", "number_active_txns":0}

      ,

      {"node":10, "isLeadTM":false, "state":"UP", "sys_recovery_state":"END", "tmshutdown_level":"RUNNING", "number_active_txns":0}

      ]

      The attachment is John DeRoo's response for this issue.
      Assigned to LaunchPad User Adriana Fuentes

        Attachments

          Activity

            People

            • Assignee:
              apachetrafodion Apache Trafodion
              Reporter:
              apachetrafodion Apache Trafodion
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: