[CONJ-686] Allow mixing TCP and socket hosts in failover configuration Created: 2019-02-21  Updated: 2023-12-15

Status: Open
Project: MariaDB Connector/J
Component/s: configuration, Failover
Affects Version/s: 2.4.0
Fix Version/s: 3.4

Type: Task Priority: Minor
Reporter: Pavel Cibulka Assignee: Diego Dupin
Resolution: Unresolved Votes: 0
Labels: None


 Description   

It would be great if allowed using of both TCP a Unix socket hosts in failover configuration.

Example: I would like primary host to to by unsecure Unix socket to localhost. Secondary host to be remove machine connected by secure TCP connection.

url="jdbc:mariadb:sequential://localhost:3306,10.0.02:3306"
localSocket=/var/run/mysqld/mysqld.sock;

This configuration works fine for localhost. Problem is, it tries to use Unix socket also to remote machine. It would be great if localSocket would be only for localhost hosts. Or if somehow configurable.


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