[MXS-2893] UnhandledPromiseRejectionWarning when creating a new filter Created: 2020-02-17  Updated: 2020-03-13  Resolved: 2020-03-05

Status: Closed
Project: MariaDB MaxScale
Component/s: maxctrl
Affects Version/s: 2.4.4, 2.4.7
Fix Version/s: 2.4.8

Type: Bug Priority: Major
Reporter: Maikel Punie Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None

Sprint: MXS-SPRINT-101

 Description   

maxctrl crashes during the create of a filter

 maxctrl list filters
┌────────────────┬──────────────┬───────────────────┐
│ Filter         │ Service      │ Module            │
├────────────────┼──────────────┼───────────────────┤
│ ScanMailFilter │ ReadWriteSVC │ namedserverfilter │
└────────────────┴──────────────┴───────────────────┘
 maxctrl create filter topRW topFilter count 100 sessions /tmp/topRW
(node:28389) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: undefined is not a function



 Comments   
Comment by markus makela [ 2020-03-04 ]

That was caused by the use of the wrong syntax for parameter declarations. Filter creation takes key=value parameters:

maxctrl create filter topRW topFilter count=100 sessions=/tmp/topRW

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