Alice Chen created TRAFODION-1163:
-------------------------------------

             Summary: LP Bug: 1443263 - DTM rest api doesn't return a valid 
json string
                 Key: TRAFODION-1163
                 URL: https://issues.apache.org/jira/browse/TRAFODION-1163
             Project: Apache Trafodion
          Issue Type: Bug
          Components: dtm
            Reporter: Apache Trafodion
            Assignee: Apache Trafodion
            Priority: Critical
             Fix For: 1.1 (pre-incubation)


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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to