[MXS-674] Maxinfo sessions JSON output is not valid Created: 2016-04-19  Updated: 2017-12-01  Resolved: 2016-04-19

Status: Closed
Project: MariaDB MaxScale
Component/s: maxinfo
Affects Version/s: 1.4.1
Fix Version/s: 2.0.0

Type: New Feature Priority: Major
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None


 Description   

The JSON output of the maxinfo module for sessions is not valid JSON. This causes parsing of the output to fail.

Here is an example of the output. Notice the missing values starting at line 3.

[ { "Session" : "0x7fffc0000a30", "Client" : "127.0.0.1", "Service" : "maxinfo", "State" : "Session ready for routing"},
{ "Session" : "0x7fffc4000c70", "Client" : "127.0.0.1", "Service" : "maxinfo", "State" : "Session ready for routing"},
{ "Session" : "0x776770", "Client" : , "Service" : "CLI", "State" : "Listener Session"},
{ "Session" : "0x7766c0", "Client" : , "Service" : "Debug Interface", "State" : "Listener Session"},
{ "Session" : "0x777160", "Client" : , "Service" : "Read Connection Router", "State" : "Listener Session"},
{ "Session" : "0x776280", "Client" : , "Service" : "RW Split Hint Router", "State" : "Listener Session"},
{ "Session" : "0x775320", "Client" : , "Service" : "SchemaRouter Router", "State" : "Listener Session"},
{ "Session" : "0x6bc370", "Client" : , "Service" : "RW Split Router", "State" : "Listener Session"},
{ "Session" : "0x6bbea0", "Client" : , "Service" : "maxinfo", "State" : "Listener Session"},
{ "Session" : "0x6bb2b0", "Client" : , "Service" : "maxinfo", "State" : "Listener Session"}]



 Comments   
Comment by markus makela [ 2016-04-19 ]

Fixed empty values not being printed as empty JSON strings.

Comment by markus makela [ 2016-04-19 ]

Fixed the JSON processing.

Generated at Thu Feb 08 04:01:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.