[MXS-3655] maxctrl show filters fails when run before other maxctrl commands Created: 2021-07-01  Updated: 2023-05-02  Resolved: 2021-08-10

Status: Closed
Project: MariaDB MaxScale
Component/s: N/A
Affects Version/s: 2.5.6, 6.4.6
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Juan Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: need_feedback
Environment:

CentOS 7.7.1908



 Description   

~# systemctl restart maxscale; maxctrl show filters; maxctrl list servers; maxctrl show filters
Error: {
    "code": "ECONNRESET"
}
┌─────────┬────────────┬──────┬─────────────┬─────────────────┬───────────────────────┐
│ Server  │ Address    │ Port │ Connections │ State           │ GTID                  │
├─────────┼────────────┼──────┼─────────────┼─────────────────┼───────────────────────┤
│ server1 │ 10.0.0.125 │ 3306 │ 0           │ Master, Running │ 125-125-159           │
├─────────┼────────────┼──────┼─────────────┼─────────────────┼───────────────────────┤
│ server2 │ 10.0.0.131 │ 3306 │ 0           │ Slave, Running  │ 125-125-159           │
├─────────┼────────────┼──────┼─────────────┼─────────────────┼───────────────────────┤
│ server3 │ 10.0.0.124 │ 3306 │ 0           │ Slave, Running  │ 124-124-4,125-125-159 │
└─────────┴────────────┴──────┴─────────────┴─────────────────┴───────────────────────┘
┌────────────┬──────────────────────────────┐
│ Filter     │ CCRf                         │
├────────────┼──────────────────────────────┤
│ Module     │ ccrfilter                    │
├────────────┼──────────────────────────────┤
│ Services   │ Read-Write-Service           │
├────────────┼──────────────────────────────┤
│ Parameters │ {                            │
│            │     "count": 0,              │
│            │     "global": false,         │
│            │     "ignore": "",            │
│            │     "match": ".*INSERT.*",   │
│            │     "options": "ignorecase", │
│            │     "time": 15               │
│            │ }                            │
└────────────┴──────────────────────────────┘



 Comments   
Comment by markus makela [ 2021-07-11 ]

Are you certain that MaxScale has fully started up once systemctl restart maxscale returns? You can test this by adding a sleep between it and the maxctrl command.

Additionally, please test this with the latest version.

Comment by markus makela [ 2021-08-10 ]

Wasn't able to reproduce this.

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