[MXS-1410] configuration both socket and port returns bad error Created: 2017-09-12  Updated: 2017-12-19  Resolved: 2017-12-19

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

Type: Bug Priority: Minor
Reporter: bart vrancken Assignee: Unassigned
Resolution: Not a Bug Votes: 0
Labels: None


 Description   

so when allowing both a port and socket like:

[Splitter Listener]
type=listener
service=Splitter Service
protocol=MySQLClient
port=3306
socket=/tmp/ClusterMaster

it returns the error:

2017-09-12 15:43:51 error : Listener 'Splitter-Listener', for service 'Splitter-Service', already have port 3306.
2017-09-12 15:43:51 error : 1 errors were encountered while processing the configuration file '/etc/maxscale.cnf'.
2017-09-12 15:43:51 error : Failed to open, read or process the MaxScale configuration file /etc/maxscale.cnf. Exiting.

saying there already is a port 3306 is incorrect, but it should allow both socket as port bindings in the same listener. It seems conflicting.

In the 2.0.1. ubuntu release it was possible to open both port and socket in the same listener.



 Comments   
Comment by Johan Wikman [ 2017-10-06 ]

It is possible to create two listeners; one that uses ip:port and another that is using socket.

Comment by Johan Wikman [ 2017-12-19 ]

Use two listeners, one using ip and port and one using socket, if both are needed.

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