1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00
Commit Graph

6247 Commits

Author SHA1 Message Date
Roman Nozdrin
35c8359d90 Merge pull request #2695 from mariadb-corporation/update-thift
Remove commited old thrift
2023-01-16 20:32:16 +03:00
Roman Nozdrin
bec8c6f6a3 Merge pull request #2690 from mariadb-corporation/MCOL-5384-Karol-Roslaniec
MCOL-5384: Connection resource cleaning by Karol Roslaniec
2023-01-16 20:30:24 +03:00
Roman Nozdrin
6700003983 Merge pull request #2691 from mariadb-corporation/mcol-5233-5388
ci: 22.08 branch, unify build platforms, debug unit storage manager
2023-01-16 19:26:50 +03:00
Leonid Fedorov
3b68353429 remove commited old thrift, replace with static lib build from exterrnal project 2023-01-16 15:37:01 +03:00
mariadb-RomanNavrotskiy
f817f8d4f4 ci changes:
- #MCOL-5392 develop-22.08 branch trigger
- #MCOL-5388 unify build platforms
- #MCOL-5233 list unit test storage manager binary
- #MCOL-5387 disable allow failure full regression
2023-01-16 13:05:14 +02:00
Gagan Goel
ad59ed5402 MCOL-5367 Fix a bug introduced in MCOL-5021 (AUX column implementation).
In the implementation of MCOL-5021, an assert was added in
`WE_DMLCommandProc::processBatchInsertHwm()` that assumed the
`WriteEngine::TableMetaData` cache is uniform across the cluster.
However, this assumption is incorrect.

This bug caused undefined behaviour in ColumnStore resulting in bugs
such as MCOL-5367. In MCOL-5367, in a multi-node ColumnStore cluster,
an INSERT ... SELECT in a transaction with system variable
`columnstore_use_import_for_batchinsert=OFF/ON` did not show inserted
records when a SELECT query was issued. Assuming a 3-node cluster setup,
DMLProc only sends a given batch of records to be inserted to one of the
3 nodes, and not all nodes. As a result, the `WriteEngine::TableMetaData`
cache is only populated for that one node and is not uniform across the
cluster, causing the assert to fail.

As a fix, we simply remove this assert as it is redundant and should not
have been added in the first place.
2023-01-16 05:54:44 -05:00
Leonid Fedorov
81f0334698 Connection resource cleaning by Karol Roslaniec 2023-01-13 16:35:12 +03:00
Roman Nozdrin
f6318f515a Merge pull request #2677 from mariadb-corporation/clang16-fix
Fix clang 16 warnings for comfort build
2023-01-13 14:57:10 +03:00
Leonid Fedorov
d42485656c Fix clang 16 warnings for comfort build 2023-01-12 22:11:28 +03:00
Leonid Fedorov
b4a6a35b40 Fix coredumps utils path (#2689) 2023-01-12 22:08:27 +03:00
Roman Nozdrin
d0eea0ffe8 MCOL-5385 This patch reduces RAM consumption and adds GROUP_CONCAT RAM accounting feature 2023-01-11 09:52:10 +00:00
David.Hall
53af74b027 MCOL-1170 Fix ANALYZE to not error (#2682)
Analyze needs to be completed differently than a normal query. In server, when an ANALYZE is seen, it calls init_scan() immediatly followed by end_scan(). This leaves the sqlfrontendsession (ExeMgr) in a state where it expects to return rows. This patch fixes end_scan to clean this up via reads and writes to get everything back in synch.

ANALYZE should display the number of rows to be displayed if the query were run normally. We have that information available, but no way to return it. A modification to server side to ask for that in the handler is required.

This patch also includes a beautification of sqlfrontsessionthread.cpp since it looked bad. The important change is at line 774
if (!swallowRows)
which short circuits the actual return of data
2023-01-09 13:59:26 -06:00
Roman Nozdrin
6b5eff5525 Merge pull request #2683 from mariadb-corporation/unparallel-tests
ci: unparallel mtr and regression
2023-01-09 18:10:44 +03:00
mariadb-RomanNavrotskiy
32e0371d70 ci: unparallel mtr and regression 2023-01-09 13:25:49 +02:00
mariadb-RomanNavrotskiy
55beeb8a6d ci: regression and mtr memory from memory limits (#2681)
* ci: regression and mtr memory from memory limits

* try cgroup name
2023-01-04 19:47:17 +03:00
mariadb-RomanNavrotskiy
20535620e0 MCOL-5369 ci: fix rocky9 build 2022-12-30 20:18:53 +02:00
Roman Nozdrin
4313288a85 Merge 22.08.7 (#2678)
* fix C API includes

ColumnStore used to include server's mysql.h
but link all tools with libmariadb.so

There's no guarantee that this would work, even with workarounds
it had in dbcon/mysql/sm.cpp

Fix:
* tools (linked with libmariadb.so) *must* include libmariadb's mysql.h
* as a hack prevent service_thd_timezone.h from being loaded into tools,
  as it conflicts with libmariadb's mysql.h
* server plugin *must* include server's mysql.h
* also don't link every tool with libmariadb.so, link the helper library
  (liblibmysqlclient.so) that actually needs it, tools use this
  helper library, not libmariadb.so directly

* do *not* link ha_columnstore.so with libmariadb.so

this means some libraries have to be compiled twice -
for tools with libmariadb.so and for plugin, without.

* use system boost, if possible

boost 1.71.0 is what ubuntu focal has, so let's start with that version.
boost 1.77.0 is the first that supports c++20

* add dependency for generated header files errorids.h messageids.h

see 3edd51610

* bump the version

* MCOL-5322 This patch replaces boost::mutex with std::mutex b/c IMHO std::unique_lock::lock is
less troublesome comparing with the boost alternative

* MCOL-5310 This patch replaces move-assignment with copy-assignment to avoid memory corruption (#2661)

* Bump VERSION to 22.08.7-1

* MCOL-5306 Re-read the config (Columnstore.xml) file if it was updated.

The existing implementation of Config::makeConfig() factory method
was returning a possibly stale config to the caller, without checking
if the config file was updated since the last read. This bug triggered
a scenario as described in MCOL-5306 where after a failover in an MCS
cluster, the controllernode coordinates changed in the config file
after failover and the existing mariadbd process was still using the
old controllernode coordinates. This lead to failed network connection
between mariadbd and the new controllernode.

The change in this fix, however, is more generic and not just limited
to this above scenario.

* MCOL-5264 This patch replaces boost mutex locks with std analogs
boost::uniqie_lock dtor calls a fancy unlock logic that throws twice.
First if the mutex is 0 and second lock doesn't own the mutex.
The first condition failure causes unhandled exception for one of the clients
in DEC::writeToClient(). I was unable to find out why Linux can have a 0
mutex and replaced boost::mutex with std::mutex b/c stdlibc++ should
be more stable comparing with boost.

* MCOL-5311 Add timezone to jobList in subquerytransformer
TimeZone was uninitialized in this scenario and led to undefined behavior.

* patch_out_of_band
Some changes made to 10.6-enterprise make a build using the out-of-band method of compiling columnstore not work. Out-of band means the source for the engine is not in the storage subdir of server, but rather in a stand alone directory. This is used by developers for easier develop work. In the case of out-of-band, INSTALL_LAYOUT is false in CMakeLists.txt

* MCOL-5346 This patch forces TreeNode::getIntValue to use conversion for dict-based CHAR/VARCHAR and TEXT columns (#2657)

Co-authored-by: Roman Nozdrin <rnozdrin@mariadb.com>

* MCOL-5263 Add support to ROLLBACK when PP were restarted.

DMLProc starts ROLLBACK when SELECT part of UPDATE fails b/c EM facility in PP were restarted.
Unfortunately this ROLLBACK stuck if EM/PP are not yet available.
DMLProc must have a t/o with re-try doing ROLLBACK.

* MCOL-3561 This patch updates Connector code after MDEV-29988

* This commit applies the code style format

Co-authored-by: Sergei Golubchik <serg@mariadb.com>
Co-authored-by: Roman Nozdrin <rnozdrin@mariadb.com>
Co-authored-by: David.Hall <david.hall@mariadb.com>
Co-authored-by: Gagan Goel <gagan.nith@gmail.com>
Co-authored-by: Denis Khalikov <dennis.khalikov@gmail.com>
2022-12-28 21:15:39 +03:00
Denis Khalikov
242bc75166 MCOL-5195 Correlated subquery with equi/non-equi scalar filter and join condition
Disable check for correlated subqueries, basically those types of queries transforms
to join (aggr(table2), table1), table2) and post join scalar filter.
2022-12-23 18:33:01 +03:00
Leonid Fedorov
6d81cde000 Typo errpr (#2671) 2022-12-20 21:21:09 +03:00
Roman Nozdrin
9746a2572b This commit adds pattern match feature using MPark's library (#2665) 2022-12-20 19:00:32 +03:00
Roman Nozdrin
4f5b31a122 There is a frequent RAM contention happens at Drone CI workers for develop (#2662)
This commit sets absolute RAM consumption limits.
2022-12-14 15:50:57 +03:00
Roman Nozdrin
15f65eff15 Merge pull request #2655 from denis0x0D/MCOL-5263_2
MCOL-5263 Add support to ROLLBACK when PP were restarted.
2022-12-13 21:24:01 +03:00
Roman Nozdrin
d43e418a8c MCOL-5346 This patch forces TreeNode::getIntValue to use conversion for dict-based CHAR/VARCHAR and TEXT columns (#2657)
Co-authored-by: Roman Nozdrin <rnozdrin@mariadb.com>
2022-12-13 18:13:22 +03:00
Denis Khalikov
d61780cab1 MCOL-5263 Add support to ROLLBACK when PP were restarted.
DMLProc starts ROLLBACK when SELECT part of UPDATE fails b/c EM facility in PP were restarted.
Unfortunately this ROLLBACK stuck if EM/PP are not yet available.
DMLProc must have a t/o with re-try doing ROLLBACK.
2022-12-13 16:18:53 +03:00
benthompson15
635a9fdb56 Merge pull request #2658 from dhall-MariaDB/patch_out_of_band
patch_out_of_band
2022-12-12 17:14:41 -06:00
david.hall
10e2834033 patch_out_of_band
Some changes made to 10.6-enterprise make a build using the out-of-band method of compiling columnstore not work. Out-of band means the source for the engine is not in the storage subdir of server, but rather in a stand alone directory. This is used by developers for easier develop work. In the case of out-of-band, INSTALL_LAYOUT is false in CMakeLists.txt
2022-12-12 14:17:09 -06:00
mariadb-RomanNavrotskiy
4ec28931b6 ci: Re-enable dockerhub step (#2650) 2022-12-12 15:24:46 +03:00
Daniel Lee
e243a5332b Merge pull request #2654 from mariadb-corporation/dlee_add_setup_database
Create 'test' database in the MTR setup suite
2022-12-09 17:07:05 -06:00
mariadb-DanielLee
3da494e21b Create 'test' database in the MTR setup suite 2022-12-09 16:48:05 -06:00
Daniel Lee
a7fd0fd60b Merge pull request #2652 from mariadb-corporation/dlee_mtr_disable_warnings
Dlee mtr disable warnings
2022-12-09 08:32:34 -06:00
root
2ed151fa59 Recorded reference results 2022-12-09 02:24:40 +00:00
root
f090e65298 More changes 2022-12-08 21:00:01 +00:00
mariadb-DanielLee
fad0fd08f0 Disable warnings for 'drop if exists' and 'create if not exist' commands 2022-12-08 11:37:44 -06:00
Gagan Goel
c14ab6d86b Merge pull request #2649 from dhall-MariaDB/MCOL-5311
MCOL-5311 Add timezone to jobList in subquerytransformer
2022-12-07 14:31:25 -05:00
david.hall
369aea884e MCOL-5311 Add timezone to jobList in subquerytransformer
TimeZone was uninitialized in this scenario and led to undefined behavior.
2022-12-07 09:52:00 -06:00
mariadb-RomanNavrotskiy
bb26fb5b1c ci: set memory limits for mtr and regression (#2644)
Containerized MCS takes a percentage from a hardware RAM amount of the node thus 2 containers could compete for RAM.
2022-12-07 18:33:18 +03:00
Roman Nozdrin
8bb5731ddc MCOL-5310 This patch replaces move-assignment with copy-assignment to avoid memory corruption (#2645)
Co-authored-by: Roman Nozdrin <rnozdrin@mariadb.com>
2022-12-06 12:56:58 -06:00
mariadb-KirillPerov
7d812b1b7e Update .drone.jsonnet (#2647) 2022-12-05 21:26:42 +03:00
Daniel Lee
3ef9751a2a Merge pull request #2643 from mariadb-corporation/dlee_mtr_1pm_folder
Dlee mtr 1pm folder
2022-12-05 11:41:42 -06:00
Roman Nozdrin
a1d89d8f31 Merge pull request #2630 from dhall-MariaDB/sergchanges
Sergchanges
2022-12-02 19:08:08 +03:00
Roman Nozdrin
9a919cdc0b Merge pull request #2642 from tntnatbry/MCOL-5306
MCOL-5306 Re-read the config (Columnstore.xml) file if it was updated.
2022-12-02 17:57:24 +03:00
root
c0d772559e Moved one more test case to 1pmonly folder 2022-12-02 14:30:43 +00:00
Gagan Goel
9bf35d74d4 MCOL-5306 Re-read the config (Columnstore.xml) file if it was updated.
The existing implementation of Config::makeConfig() factory method
was returning a possibly stale config to the caller, without checking
if the config file was updated since the last read. This bug triggered
a scenario as described in MCOL-5306 where after a failover in an MCS
cluster, the controllernode coordinates changed in the config file
after failover and the existing mariadbd process was still using the
old controllernode coordinates. This lead to failed network connection
between mariadbd and the new controllernode.

The change in this fix, however, is more generic and not just limited
to this above scenario.
2022-12-02 06:30:46 +00:00
root
945736cc1f Set batch insert flag to 'on'. Fixed a typo 2022-12-01 19:49:24 +00:00
root
814fc37081 Moved some MTR cases to a new 1pmonly directory. Also added order by clause to few cases 2022-11-30 23:40:41 +00:00
david.hall
7e3ad24437 Serge changes -- Add static joblist lib 2022-11-30 12:46:26 -06:00
david.hall
6113a6e0e8 Serg Changes from 22.08.5 2022-11-30 11:23:02 -06:00
David.Hall
ef0a21267e MCOL-5248 Change func_truncate() to use double for string, rather than attempt to translate to decimal. Currently, the treenode.h conversion functions don't support string to decimal conversion. (#2598)
This new functionality brings us into alignment with MDB 10.6
2022-11-30 19:58:25 +03:00
Roman Nozdrin
b63efe0103 Merge pull request #2637 from drrtuy/MCOL-5264
MCOL-5264 This patch replaces boost mutex locks with std analogs
2022-11-28 20:50:31 +03:00
Roman Nozdrin
c51b9b7693 Merge pull request #2638 from mariadb-corporation/fix/MCOL-5302
MCOL-5302: Fix brm-save to prevent overwrites Extent Map files multiple times with shared(non-S3) storage setup.
2022-11-28 14:18:31 +03:00