DTM rest api doesn't return a valid json string
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.
[{"node":0, "isLeadTM":true, "state":"UP", "sys_recovery_
{"node":1, "isLeadTM":false, "state":"UP", "sys_recovery_
{"node":2, "isLeadTM":false, "state":"UP", "sys_recovery_
{"node":3, "isLeadTM":false, "state":"UP", "sys_recovery_
4 TM process down. Returned error: 82,
{"node":5, "isLeadTM":false, "state":"UP", "sys_recovery_
{"node":6, "isLeadTM":false, "state":"UP", "sys_recovery_
{"node":7, "isLeadTM":false, "state":"UP", "sys_recovery_
8 TM process down. Returned error: 82,
{"node":9, "isLeadTM":false, "state":"UP", "sys_recovery_
{"node":10, "isLeadTM":false, "state":"UP", "sys_recovery_
The attachment is John DeRoo's response for this issue.
Changed in trafodion: | |
assignee: | nobody → Adriana Fuentes (adriana-fuentes) |
Changed in trafodion: | |
milestone: | none → r1.1 |
importance: | Undecided → High |
status: | New → Confirmed |
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.