DTM rest api doesn't return a valid json string

Bug #1443263 reported by Chris Zhu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trafodion
Fix Committed
High
Adriana Fuentes

Bug 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.

Tags: dtm
Revision history for this message
Chris Zhu (xia-jun-zhu) wrote :
John de Roo (john-deroo)
Changed in trafodion:
assignee: nobody → Adriana Fuentes (adriana-fuentes)
John de Roo (john-deroo)
Changed in trafodion:
milestone: none → r1.1
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Adriana Fuentes (adriana-fuentes) wrote :

Added a new state for dtmci to handle all error situations when a response is not received by the TM. So far, these errors are handled as a NOT RUNNING state for the TM. Display in json format has been corrected.

Changed in trafodion:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.