[MXS-3205] list listeners display missing pretty output Created: 2020-09-23  Updated: 2020-09-24  Resolved: 2020-09-24

Status: Closed
Project: MariaDB MaxScale
Component/s: maxctrl
Affects Version/s: 2.3.19
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Juan Assignee: markus makela
Resolution: Duplicate Votes: 0
Labels: None
Environment:

CentOS Linux release 7.7.1908


Issue Links:
Duplicate
duplicates MXS-2984 maxctrl list listeners output is not ... Closed

 Description   

maxctrl list liteners shows raw output in each of four horizontal columns resulting in a not-very-legible, redundant display 520 characters wide:

~# maxctrl list listeners Read-Write-Service
┌──────────────────────────────────────────┬──────────────────────────────────────────┬──────────────────────────────────────────┬──────────────────────────────────────────┐
│ Name                                     │ Port                                     │ Host                                     │ State                                    │
├──────────────────────────────────────────┼──────────────────────────────────────────┼──────────────────────────────────────────┼──────────────────────────────────────────┤
│ {                                        │ {                                        │ {                                        │ {                                        │
│     "id": "Read-Write-Listener",         │     "id": "Read-Write-Listener",         │     "id": "Read-Write-Listener",         │     "id": "Read-Write-Listener",         │
│     "type": "listeners",                 │     "type": "listeners",                 │     "type": "listeners",                 │     "type": "listeners",                 │
│     "attributes": {                      │     "attributes": {                      │     "attributes": {                      │     "attributes": {                      │
│         "state": "Running",              │         "state": "Running",              │         "state": "Running",              │         "state": "Running",              │
│         "parameters": {                  │         "parameters": {                  │         "parameters": {                  │         "parameters": {                  │
│             "address": "::",             │             "address": "::",             │             "address": "::",             │             "address": "::",             │
│             "port": 3306,                │             "port": 3306,                │             "port": 3306,                │             "port": 3306,                │
│             "protocol": "MariaDBClient", │             "protocol": "MariaDBClient", │             "protocol": "MariaDBClient", │             "protocol": "MariaDBClient", │
│             "authenticator": "MySQLAuth" │             "authenticator": "MySQLAuth" │             "authenticator": "MySQLAuth" │             "authenticator": "MySQLAuth" │
│         },                               │         },                               │         },                               │         },                               │
│         "authenticator_diagnostics": [   │         "authenticator_diagnostics": [   │         "authenticator_diagnostics": [   │         "authenticator_diagnostics": [   │
│             {                            │             {                            │             {                            │             {                            │
│                 "user": "max",           │                 "user": "max",           │                 "user": "max",           │                 "user": "max",           │
│                 "host": "%"              │                 "host": "%"              │                 "host": "%"              │                 "host": "%"              │
│             },                           │             },                           │             },                           │             },                           │
│             {                            │             {                            │             {                            │             {                            │
│                 "user": "max",           │                 "user": "max",           │                 "user": "max",           │                 "user": "max",           │
│                 "host": "localhost"      │                 "host": "localhost"      │                 "host": "localhost"      │                 "host": "localhost"      │
│             }                            │             }                            │             }                            │             }                            │
│         ]                                │         ]                                │         ]                                │         ]                                │
│     }                                    │     }                                    │     }                                    │     }                                    │
│ }                                        │ }                                        │ }                                        │ }                                        │
└──────────────────────────────────────────┴──────────────────────────────────────────┴──────────────────────────────────────────┴──────────────────────────────────────────┘



 Comments   
Comment by markus makela [ 2020-09-24 ]

Duplicate of MXS-2984 which is fixed in 2.3.20.

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