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

172 Commits

Author SHA1 Message Date
Leonid Fedorov
56f2346083 Remove windows ifdefs 2023-03-02 15:59:42 +00:00
David.Hall
bbb168a846 Mcol 4560 (#2337)
* MCOL-4560 remove unused xml entries and code that references it.
There is reader code and variables for some of these settings, but nobody uses them.
2022-04-18 18:00:17 -04:00
Leonid Fedorov
3919c541ac New warnfixes (#2254)
* Fix clang warnings

* Remove vim tab guides

* initialize variables

* 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length

* Fix ISO C++17 does not allow 'register' storage class specifier for outdated bison

* chars are unsigned on ARM, having  if (ival < 0) always false

* chars are unsigned by default on ARM and comparison with -1 if always true
2022-02-17 13:08:58 +03:00
Leonid Fedorov
04752ec546 clang format apply 2022-01-21 16:43:49 +00:00
benthompson15
846f7fb29b MCOL-4193: Delete unused OAM and applications, ProcMon, ProcMgr, and no longer build all tools for packages 2021-02-08 17:51:09 -06:00
Alexey Antipovsky
98b94c0280 Remove deprecated boost::timer
Change the only one actual timer to std::chrono::steady_clock
2020-11-17 15:03:10 +03:00
Alexey Antipovsky
b25fee320a Remove variable-length arrays (-Wvla) 2020-11-17 15:03:10 +03:00
Roman Nozdrin
ee4589ef40 MCOL-4018 Disable legacy OAM by default. 2020-05-27 08:32:03 +00:00
benthompson15
cc7191f75f MCOL-3842: logging cleanup 2020-04-03 12:07:23 -05:00
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