Commit Graph

199 Commits

Author SHA1 Message Date
fac3ff4366 MXS-3346: Fix tarball plugin directory
The plugin directory wasn't installed and using --basedir with a path to
the extracted tarball wouldn't be enough.
2021-01-19 14:32:12 +02:00
4ce0f26167 Declare TARBALL as an option
The variable was implicitly used which made it hard to detect.
2021-01-19 14:32:12 +02:00
02deb5bb52 Merge branch '2.3' into 2.4 2020-12-18 11:48:38 +02:00
22a112e137 Remove redundant ExecStartPost command
The LimitCORE command already sets the process core size limit so the
post-start command appears to be useless. In addition, it appears to fail
from time to time due to pidof failing to return the process ID of
MaxScale right as it starts. This in turn results in an unexplainable
failure to start with no messages logged anywhere with the exception of
the following from systemctl:

[vagrant@maxscale build]$ sudo systemctl status maxscale
● maxscale.service - MariaDB MaxScale Database Proxy
   Loaded: loaded (/usr/lib/systemd/system/maxscale.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2020-12-16 21:16:55 CET; 26s ago
  Process: 304024 ExecStartPost=/bin/sh -c prlimit -p $(pidof maxscale) --core=unlimited (code=exited, status=1/FAILURE)
  Process: 304003 ExecStart=/usr/bin/maxscale (code=exited, status=0/SUCCESS)
  Process: 304001 ExecStartPre=/usr/bin/install -d /var/lib/maxscale -o maxscale -g maxscale (code=exited, status=0/SUCCESS)
  Process: 303999 ExecStartPre=/usr/bin/install -d /var/run/maxscale -o maxscale -g maxscale (code=exited, status=0/SUCCESS)
 Main PID: 304004 (code=exited, status=0/SUCCESS)
2020-12-16 22:35:38 +02:00
e17e0b8f59 Add support for newer ASAN 2020-12-11 16:34:08 +02:00
9215185a25 Merge branch '2.3' into 2.4 2020-09-08 11:33:52 +03:00
edb215619d Remove MAXSCALE_BUILD_NUMBER from debian version 2020-09-08 09:22:58 +03:00
8b5f2fb46d Merge branch '2.3' into 2.4 2020-09-07 21:33:08 +03:00
ea1d7ba33b Fix CPACK_DEBIAN_PACKAGE_RELEASE field 2020-09-07 15:48:11 +03:00
caaf36a279 Add MAXSCALE_BUILD_NUMBER to the debian/control version 2020-09-07 14:47:54 +03:00
797ddc77e0 Merge branch '2.3' into 2.4 2020-08-19 12:00:06 +03:00
e624cf4ecb revert to original package names with dashes 2020-08-19 11:49:54 +03:00
e387220e25 Add distro code name into debian/control version
'reprepro' tool needs different values in the
debina/control file, version field in order to
make one single repository for all distributions
2020-08-19 01:35:10 +03:00
136215ecd2 2879: Update Connector-C to 3.1.8
This includes a fix that will return the proper error message even if the
connection fails during reconnection.
2020-05-20 08:12:54 +03:00
c2b868e8aa Merge branch '2.3' into 2.4 2020-04-23 14:51:11 +03:00
be567b6029 MXS-2969: Restart MaxScale on upgrade
Renamed the postrm script to prerm since it is executed before
uninstallation.

Silenced the output of the systemctl disable commands and added a
conditional restart of MaxScale if a MaxScale instance is running.

Use getent instead of grep to detect if the maxscale user needs to be
created.
2020-04-21 09:29:16 +03:00
0c82fcb627 Update connector-c to 3.1.7
Still needs to be updated to 3.1.8 once released but we should
pre-emptively update it to see if any problems crop up.
2020-04-18 07:13:20 +03:00
007f41ddf3 Merge remote-tracking branch 'origin/2.3' into 2.4 2020-03-31 14:50:42 +03:00
e0cd4ec485 MXS-2931: Use a preun, not a postun, script
The script must be called before the package is removed on CentOS 6 to
allow the process to be stopped correctly.
2020-03-31 14:49:54 +03:00
0b21544693 Fix TSAN CMake option
The wrong variable was set.
2020-02-10 10:46:12 +02:00
8dccae63dd Merge branch '2.3' into 2.4 2019-09-18 17:03:40 +03:00
9c007ff401 Add missing workaround files to tgz installation
2.3 has new directories that must be present in the tarball.
2019-09-18 14:55:23 +03:00
52fd2f011f Use a fixed Connector-C version
The connectors should be built from a known release.
2019-07-17 16:26:48 +03:00
fcc19f3c66 Merge branch '2.3' into 2.4 2019-06-27 08:53:33 +03:00
a6617f52fc MXS-2578: Remove installation of /var/lib/maxscale
The directory was installed as the root user but later on in the
installation process the owner would be changed to the maxscale user. This
causes some validation programs to fail as they expect installed files to
retain the original ownership.
2019-06-27 08:25:12 +03:00
991067372d Improve systemd check error message
The error now displays the correct package name for systems that use RPMs.
2019-06-26 15:49:50 +03:00
82229b7a1e Merge branch '2.3' into develop 2019-06-10 14:08:17 +03:00
57029bb1a1 MXS-2445 Add logrotate config file 2019-06-10 12:51:03 +03:00
44d1b821c3 Merge branch '2.3' into develop 2019-06-03 13:54:55 +03:00
b635cc92ab MXS-1783 Add 10.4 support
qc_mysqlembedded can now be built using the embedded library from
MariaDB 10.4.
2019-05-31 15:12:57 +03:00
4e6ca33053 Add UBSAN flag to builds
The -DWITH_UBSAN flag enables the undefined behavior detection provided by
GCC.
2019-05-31 14:01:14 +03:00
edb669100d MXS-2511: Update connector-c
Updated to 3.0.10.
2019-05-28 14:00:28 +03:00
20afbfca76 Merge branch '2.3' into develop 2019-05-02 20:24:04 +03:00
09d04a09d4 Merge branch '2.2' into 2.3 2019-05-02 20:11:51 +03:00
753fa0552a MXS-2366: Fix RPATH setting for tarball
All RPATH setting have to be set before generation of any binary.
Defining of CMAKE_INSTALL_RPATH is moved to separate file which is called from main CMakeLists.txt in the beginning, just after install_layout.cmake
2019-04-30 14:18:33 +03:00
363bb5aa56 Update Connector-C to 3.1
Updated the connector to 3.1 as it adds support for the replication
protocol.
2019-04-17 14:13:44 +03:00
b07c53d532 Remove multi-master monitor
Was deprecated in 2.3. Similar features are in MariaDB-Monitor.

One system test was modified to use MariaDB-Monitor instead. Some parts
of the test are disabled for now to make it pass.
2019-03-11 17:50:15 +02:00
b560a67e54 Merge branch '2.2' into 2.3 2019-02-07 10:45:57 +02:00
3074e7e6bb MXS-2308: Fix connector_plugindir
The default values now point to the location where the connectors plugins
are installed.
2019-01-31 14:23:27 +02:00
abaa228987 Add extra definitions to debug build service files
The unlimited core dumps are now only enabled for debug builds.
2019-01-31 13:14:46 +02:00
75fb728ee7 Don't require libsystemd for system tests
The tests don't require it to compile.
2018-11-23 08:47:04 +02:00
ba5017bdff Merge branch '2.2' into 2.3 2018-11-22 13:55:17 +02:00
2ff95216a9 MXS-2081: Prevent unwanted stripping of binaries
RPM packages by default strip all executables on some systems after
installation. To work around this, the post install part needs to be
prevented. This does not mean the post-install scripts used to create the
directories required by MaxScale.
2018-11-22 13:38:35 +02:00
923be73636 MXS-2171 Refuse to build without libsystemd-dev on systems that have systemd 2018-11-21 12:42:49 +02:00
56a0945616 Add install scripts to maxscale-all package
The combined package should have the post-install and post-uninstall scripts.
2018-11-19 20:02:12 +02:00
11f607de8d Merge branch '2.2' into 2.3 2018-11-19 18:49:45 +02:00
37973777d5 MXS-2081: Prevent unwanted stripping of binaries
RPM packages by default strip all executables on some systems after
installation. To work around this, the post install part needs to be
prevented. This does not mean the post-install scripts used to create the
directories required by MaxScale.
2018-11-19 09:23:48 +02:00
1108132cbd MXS-2057 Do not require systemd libraries
Exclude systemd usage if the library is not installed.
Only excluding what is necessary. This keeps the object size the
same and still compiles most of the code.
2018-11-09 16:45:59 +02:00
4554bd1743 Cherry-pick: Fix ASAN problems
Cherry-picking the commit from develop since it's also needed for 2.2.

FindASAN did not look for so version 5 and TSAN referred to ASAN. Disable
leak checks for unit tests as some objects always leak, namely servers.
2018-09-30 20:12:35 +03:00
0387736130 Fix ASAN problems
FindASAN did not look for so version 5 and TSAN referred to ASAN. Disable
leak checks for unit tests as some objects always leak, namely servers.
2018-09-30 19:37:12 +03:00