1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-27 08:21:15 +03:00
Commit Graph

163 Commits

Author SHA1 Message Date
drrtuy
afe4495d09 MCOL-3810: Change from system() to fork/execl inside liboam to avoid SIGCHLD handler in procmon. 2020-02-25 18:26:26 +03:00
Andrew Hutchings
9605c951dc MCOL-3793 Fix UM ACTIVE / DEGRADED flip-flop
OAM mysqld status check was recording the pid of mysqld but this was
being masked by another variable. So on every ACTIVE check it would
flip to DEGRADED and on every DEGRADED check it would flip to ACTIVE.

Variable masking is now removed. Also fixed a typo in the systemd check.
2020-02-17 09:53:02 +00:00
Andrew Hutchings
f9e5bdbc8d Fix restart hang
mcsadmin restart will do a status call. Before this would log status
output to a file which would be checked. If that file check failed a PID
check would be made.

We do not log the status to a file any more since it could have multiple
different outputs. The PID check could hit a race condition where it is
being checked before the process is up. This would mean there is no
module state change causing a hang.

This fix does the following:

1. Remove the file status check completely
2. Loop the PID check to give it time to come up
3. If the PID check fails drop to a DEGRADED state

This makes mcsadmin restart work correctly again.
2020-02-12 09:57:22 +00:00
Andrew Hutchings
7df731a3a6 Make mysqld work without systemd
ColumnStore should now start/stop mysqld where the systemd service is
not available.
2020-02-06 09:40:36 +00:00
Andrew Hutchings
6cf6519019 MCOL-3718 Use systemd instead of mysql-Columnstore
MariaDB server is now managed using systemd instead of our own
mysql-Columnstore script. This means that MariaDB server can be stopped
/ started independently of ColumnStore
2020-02-06 07:47:44 +00:00
Patrick LeBlanc
d01df95144 Made the SKIP_OAM_INIT checks happen at run time vs build time. 2020-01-15 16:31:07 -05:00
Andrew Hutchings
a8cd34f86d Add support for building from server 2019-12-03 21:21:28 +00:00
benthompson15
830490c846 MCOL-3577: Make this run syncFS for storagemanager on all nodes when suspend writes is done from mcsadmin. 2019-11-21 15:19:03 -06:00
Andrew Hutchings
25d22381c6 MCOL-3608 Add module installer file copy
Adds back some stuff that was remove distributed that didn't work
properly for non-distributed. Also use /var/lib/columnstore/local
for module file as OAM intended.
2019-11-14 14:40:28 +00:00
Andrew Hutchings
8ab9ebb0f4 MCOL-3606 Make ColumnStore use generic paths
ColumnStore now uses standard bin/lib paths for pretty much everything.
Data path is now hard-coded to /var/lib/columnstore.

This patch also:

* Removes v1 decompression
* Removes a bunch of unneeded files
* Removes COLUMNSTORE_INSTALL_DIR / $INSTALLDIR
* Makes my.cnf.d work for all platforms (MCOL-3558)
* Changes configcpp to use recursive mutex (fixes possible config write deadlock)
* Fixes MCOL-3599 Fix regr functions, The library was installed in the wrong location
* Fixes a bunch of Ubuntu packaging issues
* Changes the binary names of several of the executables so as not to
clash with potential executables from other packages
2019-11-09 16:53:05 +00:00
Andrew Hutchings
ebb22a96a3 MCOL-3551 Use generic MariaDB Server paths
This branch enforces the use of generic MariaDB server paths for their
binaries and data rather than custom paths.

/usr/local/mariadb/columnstore is now only for columnstore with this
patch.

It should be noted that this removes the auto-mounting of external
MariaDB UM data storage for AWS.

This is also a fix for MCOL-3510 after buildbot changes are made.

Also... MCOL-3552 Use columnstore.cnf to load plugins

The ColumnStore plugins now load using a columnstore.cnf instead of a
SQL sequence to be more in-line with MariaDB's methods.
2019-10-13 09:34:37 +01:00
Andrew Hutchings
97bda78c3b Move config files
This patch:

* Moves config files from /usr/local/mariadb/columnstore/etc to
ENGINE_SYSCONFDIR/columnstore (ENGINE_SYSCONFDIR is /etc by default)
* Sets a define called MCSSYSCONFDIR whic contains the
ENGINE_SYSCONFDIR compile time setting
* Modifies scripts and code to use the new paths
* Removes a whole bunch of files we don't use
2019-09-09 14:13:56 +01:00
Andrew Hutchings
74d68b4db3 Fix my.cnf clash
This patch:

* Moves ColumnStore my.cnf to /etc/my.cnf.d/columnstore.cnf
* Removes unneeded entries from columnstore.cnf
* Removes some things that used my.cnf and are now dead
* Also removes utils/scenarios
* Modifies things that use extra defaults file to use the standard one
* Makes sure that C++11 standard is used for older CMake versions

With this patch we no longer need to set -DINSTALL_SYSCONF2DIR and
-DINSTALL_SYSCONFDIR when building MariaDB server.
2019-09-04 18:51:02 +01:00
Patrick LeBlanc
fbdf1a5308 Merge branch 'develop' into S3-project 2019-08-14 15:37:14 -05:00
Patrick LeBlanc
a09a9d5d0f Mass substitution 'Corporaton' -> 'Corporation' 2019-08-07 14:43:25 -05:00
Patrick LeBlanc
753139a933 Checked for references to DBRootStorageType, made a couple changes
I suspect are necessary to make failover work.
2019-06-12 13:07:22 -05:00
Patrick LeBlanc
366cd406ba Cleaned up the diff vs S3-project. 2019-06-12 10:00:11 -05:00
Patrick LeBlanc
f34f785f8a Made OAM suppress its knowledge of StorageManager if it is disabled. 2019-06-10 13:02:56 -05:00
Roman Nozdrin
9dc33c4e82 Another try to cope with warnings under gcc 8.2. 2019-04-29 11:05:03 +03:00
Patrick LeBlanc
cbbf267e88 MCOL-537, cleanup compiler warnings. Checkpointing a bunch of fixes.
Work in progress...
2019-04-29 10:56:48 +03:00
Patrick LeBlanc
b336b43176 Merge pull request #665 from pleblanc1976/mcol-1607
Mcol 1607 - postconfig must support writing hostnames to config file
2018-12-21 09:01:06 -06:00
Andrew Hutchings
82bd9e29f5 Merge branch 'develop-1.1' into 1.1-merge-up-2018-12-20b 2018-12-20 20:55:00 +00:00
Patrick LeBlanc
103df7bea9 Fixed a copy-paste error. 2018-11-29 15:30:16 -06:00
Patrick LeBlanc
7ad0aa4420 MCOL-1607. Tentative change to include addModule.
This might or might not let addModule store host names
instead of IP addresses.
2018-11-29 15:20:05 -06:00
David Hill
9e0a72ccd8 MCOL-1797 - change calpont to mariadb columnstore 2018-11-27 10:24:01 -06:00
Patrick LeBlanc
f830955be9 Rescoped the tmpdir var, global -> class, in liboamcpp to fix a race. 2018-11-08 11:25:59 -06:00
David Hill
cf6820d342 MCOL-520 - added in mysql_upgrade script and fix issue with shared memory not cleared at shutdown 2018-11-03 17:06:36 -05:00
David Hill
6c3b6cd470 MCOL-520 - fix um device name 2018-10-30 16:49:42 -05:00
David Hill
fe4de755ea MCOL-520 - mkfs testing amazon 2018-10-30 13:39:06 -05:00
David Hill
8847a2fade MCOL-520 - mkfs testing amazon 2018-10-30 10:38:13 -05:00
David Hill
cc158c9c96 MCOL-520 - amazon added sudo for chmod 2018-10-29 14:19:04 -05:00
david hill
648a1e7436 MCOL-520 amazon ebs changes 2018-10-26 18:57:09 -05:00
David Hill
2e2ef03602 MCOL-520 gluster changes 2018-10-24 14:17:16 -05:00
David Hill
1456303ca8 MCOL-520 gluster changes 2018-10-24 09:41:52 -05:00
David Hill
bca342d262 MCOL-520 gluster changes 2018-10-24 09:25:08 -05:00
David Hill
5bffb0a047 MCOL-520 2018-10-23 14:56:02 -05:00
David Hill
43c21d0ff9 MCOL-520 2018-10-23 14:53:40 -05:00
David Hill
9bce56beb3 MCOL-520 2018-10-23 14:40:17 -05:00
Patrick LeBlanc
8a4263f594 Merge branch 'MCOL-520' of github.com:mariadb-corporation/mariadb-columnstore-engine into MCOL-520 2018-10-08 15:33:20 -05:00
Patrick LeBlanc
d9aab31afd MCOL-520. Fixed some stuff our older compilers don't like. 2018-10-08 15:32:10 -05:00
david hill
101b36acb6 Merge branch 'develop' into MCOL-520 2018-10-08 14:23:48 -05:00
Andrew Hutchings
f1f13a09d1 Merge branch 'develop-1.1' into 1.1-merge-up-2018-10-05 2018-10-05 18:40:07 +01:00
Patrick LeBlanc
f97dec3406 Merge branch 'fix-skip-oam-init' into MCOL-520 2018-10-04 15:35:32 -05:00
Patrick LeBlanc
3d7f4a3170 Squash commit of fix-skip-oam-init branch.
Squashed commit of the following:

commit faaee9141a
Author: Patrick LeBlanc <patrick.leblanc@mariadb.com>
Date:   Wed Oct 3 13:03:02 2018 -0500

    Commented a debugging printout.

commit e47e784c53
Author: Patrick LeBlanc <patrick.leblanc@mariadb.com>
Date:   Wed Oct 3 12:13:23 2018 -0500

    Moved the SKIP_OAM_INIT check for cleanliness, added 'config.h' to
    other places that need it.

commit 6626045535
Author: Patrick LeBlanc <patrick.leblanc@mariadb.com>
Date:   Tue Oct 2 16:33:06 2018 -0500

    WIP.  First cut of excising OAM and root access from the dev process.

    This passes most tests; need to make sure that the tests that fail
    have nothing to do with this change.

    DMLProc is doing something that results in a sudo password prompt.
    Will obliterate that next.
2018-10-03 13:04:54 -05:00
Patrick LeBlanc
6626045535 WIP. First cut of excising OAM and root access from the dev process.
This passes most tests; need to make sure that the tests that fail
have nothing to do with this change.

DMLProc is doing something that results in a sudo password prompt.
Will obliterate that next.
2018-10-02 16:33:06 -05:00
David Hill
681cfd34eb MCOL-520 2018-09-24 11:50:56 -05:00
david hill
2f58c7cc8d Merge pull request #574 from mariadb-corporation/develop
Develop
2018-09-19 14:01:38 -05:00
David Hill
f7a2b50b21 MCOL-1699 - fix iss with adddbroot amazon 2018-09-11 15:47:25 -05:00
Andrew Hutchings
03da6df473 Merge branch 'develop-1.1' into 1.1-merge-up-20180817 2018-08-17 16:17:13 +01:00
Ben Thompson
515cc31d4f MCOL-1610: modify so if moving a dbroot fails with gluster it is reassigned to original owner. Add logging around failure for mounting gluster volumes. 2018-08-06 10:10:52 -05:00