Page MenuHomePhabricator

Switch to mariadb java connector
Closed, DeclinedPublic

Description

we should switch to the mariadb java connector.

Reason is we use a mariadb database so by using a mariadb java connector we may improve performance or better support for mariadb features.

It’s also better maintained and also supports session based variables.

we can use it like

type = mariadb
hostname = <ip>
database = <db>
username = <username>
url = jdbc:mariadb://<ip>/<db>?sessionVariables=character_set_client=utf8,character_set_results=utf8,character_set_connection=utf8,collation_connection=utf8_unicode_ci,collation_database=utf8_unicode_ci,collation_server=utf8_unicode_ci

Event Timeline

Marostegui subscribed.

Removed the DBA project, but will remain subscribed just in case something is needed from us.

One more reason to switch from mysql connector to mariadb connector is that in 2.15 it updated mysql connector to 6.0.6 which seems to be causing upgrades to fail (regression). Whereas mariadb connector is fine. I suggest we go with something stable here as mariadb gets more updates then the mysql one, leading to less bugs :).

mysql connector java 6.x is broken and it seems the connector is just unstable. I recommended upstream to recommend others to use the mariadb connector.

Change 384588 had a related patch set uploaded (by Paladox; owner: Paladox):
[operations/puppet@production] Gerrit: Switch to the mariadb connector

https://gerrit.wikimedia.org/r/384588

Change 384588 had a related patch set uploaded (by Paladox; owner: Paladox):
[operations/puppet@production] Gerrit: Switch to the mariadb connector

https://gerrit.wikimedia.org/r/384588

Paladox renamed this task from Switch to mariadb java connector once we upgrade to gerrit 2.14 to Switch to mariadb java connector.Apr 1 2018, 2:28 AM
Paladox raised the priority of this task from Low to Medium.
Paladox updated the task description. (Show Details)

Hi,

What would you need from the DBAs?

Hi, we only need dba ok to do this (it requires dba approval because it’s touching dba related stuff) ie replacing a MySQL driver with a mariadb one.

I don't think this needs any DBA approval, as we are not responsible of how you connect to the DB itself ;-)

I think we can just decline this. NoteDB works around the problem and the underlying bug leading to this has gone away too.

Yep, in 2.16 / 3.0 groups will be migrated to notedb so only one last piece would be using the db (which i forget which one)

Change 384588 abandoned by Paladox:
Gerrit: Switch to the mariadb connector

Reason:
We will be upgrading to 2.16 very soon so no longer needed, I'm removing db support in https://gerrit.wikimedia.org/r/488093

https://gerrit.wikimedia.org/r/384588