Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.

Conversation

@t-b
Copy link
Contributor

@t-b t-b commented Jan 21, 2020

Close #61
Close #68

@mliszcz @bourtemb Ready for review. Please note that I'm a total automake novice.

The interesting commits are 95b0a6d and 0a03661.

t-b added 6 commits January 23, 2020 20:15
The mariadb client package includes its own version number. Let's return
that as well.

We guard that in an #if block so that future package versions without
that define still create a valid test.

We also upgrade from the obsolete AC_TRY_LINK to AC_LINK_IFELSE.

The mariadb client version is then returned in MARIADBCLIENT_VERSION.
This now has a fixed alignement ignoring the database type.
And also disambiguate DB_VERSION to DB_SERVER_VERSION.
@t-b t-b force-pushed the check-mariadb-version branch from 5e3bd53 to 828c055 Compare January 23, 2020 19:43
Reports [1] indicate that versions 2 of the mariadb client package
trigger DatabaseDS crashes when the database connection timeout is reached.

In order to warn users about potential issues we now about a warning
message in this case.

[1]: tango-controls#61

The output on a stock debian stretch system looks like

Configuration (tango):

        Source code location:       .
        Version:                    9.3.4-rc1
        Compiler:                   gcc,g++

        OMNIORB PATH:               /usr/local
        OMNIORB VERSION:

        ZMQ PATH:                   /usr
        ZMQ VERSION:                4.2.1

        JAVA PATH:                  /usr/bin/java
        JAVA VERSION:               1.8.0_131

        Database MARIADB
          CLIENT LIB:               -lmariadb
          CLIENT VERSION:           2.3.2 (Warning! potentially buggy version)
          VERSION:                  10.1.41-MariaDB
          CONNECTION:               OK

build:
        libraries:                  yes
        java application:           yes
        access control server:      yes
        database server:            yes
        database schema create:     yes

notice "Warning .." message.

On debian unstable it looks better

Configuration (tango):

        Source code location:       .
        Version:                    9.3.4-rc2
        Compiler:                   gcc,g++

        OMNIORB PATH:               /usr
        OMNIORB VERSION:            "4.2.2"

        ZMQ PATH:                   /usr
        ZMQ VERSION:                4.3.2

        JAVA PATH:                  /usr/bin/java
        JAVA VERSION:               1.8.0_242-ea

        Database MARIADB
          CLIENT LIB:               -lmariadb
          CLIENT VERSION:           3.1.6
          VERSION:                  10.3.21-MariaDB
          CONNECTION:               OK

build:
        libraries:                  yes
        java application:           yes
        access control server:      yes
        database server:            yes
        database schema create:     yes
@t-b t-b force-pushed the check-mariadb-version branch from 828c055 to 0a03661 Compare January 23, 2020 19:57
@t-b t-b marked this pull request as ready for review January 23, 2020 19:58
@t-b t-b requested review from bourtemb and mliszcz January 23, 2020 19:59
@t-b t-b mentioned this pull request Feb 28, 2020
7 tasks
@bourtemb
Copy link
Member

bourtemb commented Mar 6, 2020

Seems to work as described in the commit messages.
Thanks @t-b for the work done.
I was wondering whether we should add a reference to #61 issue somewhere too? (In the release notes or in the warning message).

@t-b
Copy link
Contributor Author

t-b commented Mar 6, 2020

@bourtemb Let's do that in the release notes.

@t-b
Copy link
Contributor Author

t-b commented Mar 6, 2020

@bourtemb Good to merge?

@t-b t-b merged commit 75863a6 into tango-controls:master Mar 9, 2020
@t-b t-b deleted the check-mariadb-version branch March 9, 2020 09:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Check libmariadb version and warn on buggy version DataBaseds crashes

2 participants