1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-05-28 13:01:26 +03:00

2216 Commits

Author SHA1 Message Date
Roman Nozdrin
771988dd1f MCOL-2052 IS.columnstore_files now prints correct number of records for any relation out.
Return statement called in generate_result() returns too early.
2019-01-15 10:18:25 +03:00
Patrick LeBlanc
63824fa1c2
Merge pull request #673 from mariadb-corporation/1.1-merge-up-20190111
Merge develop-1.0 into develop-1.1
2019-01-11 13:32:55 -06:00
Andrew Hutchings
8f5fb1a71e Merge branch 'develop-1.0' into 1.1-merge-up-20190111 2019-01-11 18:44:15 +00:00
David.Hall
27dedfb622
Merge pull request #672 from pleblanc1976/develop-1.0
MCOL-2062: bug parsing scientific notation in cpimport
2019-01-10 16:24:34 -06:00
Patrick LeBlanc
26dd22af83
Merge pull request #661 from mariadb-corporation/MCOL-1726
MCOL-1726 Make cleartablelock remove txn from BRM
2019-01-10 14:18:48 -06:00
Patrick LeBlanc
fe94776ac6 MCOL-2062: bug parsing scientific notation in cpimport
Made it use strtold instead of the 'manual' string parsing
stuff it was doing.
2019-01-09 16:31:38 -06:00
Patrick LeBlanc
ffebf3c0ce
Merge pull request #658 from mariadb-corporation/MCOL-1662b
MCOL-1662 Use version buffer for UPDATEs
2019-01-04 12:27:17 -06:00
Patrick LeBlanc
8220579b9a
Merge pull request #656 from mariadb-corporation/MCOL-1676-1.1
MCOL-1676 Window Functions with FLOAT type gives incorrect answer
2018-12-21 19:33:44 -06:00
Andrew Hutchings
7c47ea181f MCOL-1726 Make cleartablelock remove txn from BRM
With an API txn (and likely other scenarios) cleartablelock will roll
back the txn and lock but leave a stale txn pointer in the BRM. This
causes restart/shutdown to warn that transactions are still open.

This patch makes sure BRM removes the txn from the list.
2018-12-20 15:32:32 +00:00
Andrew Hutchings
e28924b60f
Merge pull request #659 from mariadb-corporation/MCOL-2007
MCOL-2007: add gitversionEngine file to builds/packages
2018-12-19 09:26:40 +00:00
Ben Thompson
177b472ad4 MCOL-2007: add gitversionEngine file to builds/packages 2018-12-18 15:23:55 -06:00
Andrew Hutchings
9888f88ac5 MCOL-1662 Use version buffer for UPDATEs
For some reason version buffer is not turned up for update queries which
means that the version number for dictionary blocks is not changed.
This can lead to dirty cache reads resulting in _CpNoTf_ in the results.

This patch turns on version buffer for updates.
2018-12-17 09:08:30 +00:00
David.Hall
289c163a73
Merge pull request #657 from mariadb-corporation/MCOL-2018
MCOL-2018 Fix array bounds issue
2018-12-13 09:24:33 -06:00
Andrew Hutchings
7989ccefe0 MCOL-2018 Fix array bounds issue
StringStore NULL check includes a check for _CpNuLl_ in the
StringStore. This is a case should never happen but we keep it just in
case.

Unfortunately this check was skipping 4*8 bytes instead of just 4 bytes.
This is definitely bad behaviour but it could cause an out-of-bounds read
based crash.
2018-12-12 18:06:09 +00:00
David Hall
9d438f0a24 MCOL-1676 Window Functions with FLOAT type gives incorrect answer 2018-12-11 09:37:12 -06:00
Andrew Hutchings
522e4ca027
Merge pull request #655 from mariadb-corporation/MCOL-1347_2
ALTER TABLE ADD COLUMN now creates a column with correct width for a varchar columns.
2018-12-10 21:21:44 +00:00
Roman Nozdrin
d807aaee0a MCOL-1347 ALTER TABLE ADD COLUMN now creates a column with correct width for a varchar columns. 2018-12-10 10:11:11 -08:00
Roman Nozdrin
3fc1893ce9 MCOL-1347 BRM_INFO is fixed and could be used for BRM debugging. 2018-12-05 13:39:21 -08:00
David.Hall
e0357d4c13
Merge pull request #647 from mariadb-corporation/MCOL-1797
Mcol 1797
2018-11-27 13:29:52 -06:00
David Hill
ba62041795 MCOL-1797 - fix issue with dual ddl/dml active states on resumedb 2018-11-27 13:16:57 -06:00
David Hill
9e0a72ccd8 MCOL-1797 - change calpont to mariadb columnstore 2018-11-27 10:24:01 -06:00
David Hill
558034b4d6 MCOL-1797 - fix issue with dual ddl/dml active states on resumedb 2018-11-27 09:50:08 -06:00
benthompson15
f6cf90fee7
Merge pull request #628 from mariadb-corporation/MCOL-1947
MCOL-1947 - change module and home alias
2018-11-20 19:52:17 +00:00
Andrew Hutchings
91514f4929
Merge pull request #623 from pleblanc1976/develop-1.1
MCOL-1844.  Preserve user-added args in 'myCnf-include-args.text' across upgrades
2018-11-20 15:34:51 +00:00
Andrew Hutchings
fcca0e6bfc
Merge pull request #624 from pleblanc1976/develop-1.0
MCOL-1844.  Preserve user-added args in 'myCnf-include-args.text' across upgrades
2018-11-20 15:34:27 +00:00
David Hill
9bf8df6a6f MCOL-1947 - change module and home alias 2018-11-19 09:07:01 -06:00
Patrick LeBlanc
1ffa472fd9
Merge pull request #620 from mariadb-corporation/MCOL-1868
MCOL-1868 Fix error in unused code
2018-11-15 09:16:21 -06:00
Patrick LeBlanc
165a5c76bf MCOL-1844. Removed an unassociated change I made. 2018-11-15 09:14:20 -06:00
Patrick LeBlanc
35662d3258 MCOL-1844. Preserve user-added args in 'myCnf-include-args.text' across upgrades. 2018-11-14 17:33:53 -06:00
Patrick LeBlanc
5fd94e1438 MCOL-1844. Preserve user-added args in 'myCnf-include-args.text' across upgrades. 2018-11-14 17:15:14 -06:00
Andrew Hutchings
b1d5f54abe MCOL-1868 Fix error in unused code
There was a a bad line in some code that we don't currently compile. This
patch fixes that code in case we use it in the future.
2018-11-14 14:29:58 +00:00
David.Hall
91a24e410f
Merge pull request #612 from pleblanc1976/develop-1.1
MCOL-1654.  Querystats table creation broken.
2018-11-06 09:32:52 -06:00
David.Hall
86489a923f
Merge pull request #611 from pleblanc1976/develop-1.0
MCOL-1654.  Querystats table creation broken.
2018-11-06 09:32:13 -06:00
Patrick LeBlanc
60fb620dcb MCOL-1654. Querystats table creation broken.
Escaped the ` chars to make the shell happy.

Conflicts:
	dbcon/mysql/install_calpont_mysql.sh
2018-11-06 08:00:08 -06:00
Patrick LeBlanc
a68caad9a2 MCOL-1654. Querystats table creation broken.
Escaped the ` chars to make the shell happy.
2018-11-06 07:57:44 -06:00
David.Hall
2bc98e9707
Merge pull request #601 from mariadb-corporation/MCOL-1826
MCOL-1826 Fix race in FLOAT/DOUBLE to string
2018-10-29 09:59:25 -05:00
Andrew Hutchings
65287a0613 MCOL-1826 Fix race in FLOAT/DOUBLE to string
In the FLOAT/DOUBLE to string conversions a class global string was used
to store the result. Unfortunately it is possible for an instance of
this class to be used by multiple threads of PrimProc simultaneously.
This would cause a race and data corruption or more likely a crash.

This fix passes a string object from the caller to use instead.
2018-10-22 17:56:49 +01:00
David.Hall
8eeb58b819
Merge pull request #596 from mariadb-corporation/MCOL-1810-1.1
MCOL-1810 Fix hang on low core count
2018-10-16 12:42:21 -05:00
Andrew Hutchings
ccd9a414eb MCOL-1810 Fix hang on low core count
Anything that links against joblist will spin up a threadpool upon
startup. This includes the tools setConfig/getConfig. It is possible on
a low core count machine or low CPU speed that the signal to the prune
thread to shutdown is sent before the thread has completed startup when
these quick-running tools are used.

This fix adds a mutex so that spin up and shutdown can't happen at the
same time as well as a stop watch in case we are shutting down when
either the thread is running or we haven't fully started.
2018-10-16 18:03:25 +01:00
benthompson15
746a738a79
Merge pull request #589 from mariadb-corporation/MCOL-1762-1.1
MCOL-1762 - added joblist ThreadPoolSize
2018-10-09 17:06:21 -05:00
David Hill
3b026f44b4 MCOL-1762 - added joblist ThreadPoolSize 2018-10-09 15:34:35 -05:00
David.Hall
e183557b67
Merge pull request #577 from mariadb-corporation/MCOL-1750b
MCOL-1750 Fix threadpool stack leaks
2018-09-28 10:26:54 -05:00
Andrew Hutchings
5092b4fd13 MCOL-1750 unique_ptr doesn't work in all OSes 2018-09-28 07:55:06 +01:00
Andrew Hutchings
94dfacfe25 MCOL-1750 Fix threadpool stack leaks
When a thread has been idle for 10 minutes and we have too many threads
in the threadpool the thread will be pruned. This is done by the
thread's main function just returning. Unfortunately this does not free
up the memory, the thread either needs to be joined or detatched.

We cannot use detached threads since there are mutexes and conditional
variables between the main thread and the threadpool threads. If the
main thread finishes before the threadpool threads (as would happen in
cpimport) then crashes occur. The parent needs to wait on the child
threads which is the whole point in joining.

So this fix spawns a new thread which every minute will check the list
of threads to be joined due to timeout and join them.

We have had to use an adapted version of boost::thread_group so that we
can join a single thread based off its thread ID.

In addition with have modified PriorityThreadPool to use detached
threads since this does not need to signal the child threads at the end.
2018-09-28 07:21:49 +01:00
Roman Nozdrin
f78c90cd3c
Merge pull request #575 from mariadb-corporation/MCOL-1737
MCOL-1737 Add debug logging options for LRU cache
2018-09-21 17:19:38 +03:00
Andrew Hutchings
24c5e93756 MCOL-1737 Add debug logging options for LRU cache
This adds options which are user enabled to debug the LRU cache inside
ColumnStore. Specifically cache flushing.

It adds the following:
* PrimProc flush information when SIGUSR2 mode is enabled
* cpimport dictionary flush information when -d2 is used
* WriteEngineServer DML flush information to STDERR
2018-09-21 09:50:10 +01:00
benthompson15
b74838bb50
Merge pull request #561 from mariadb-corporation/MCOL-1523-2
MCOL-1523 - additional fixes
2018-09-17 10:41:49 -05:00
David Hill
3ac9d93597 MCOL-1523 - addiiotnal fixes 2018-09-15 14:28:46 -05:00
benthompson15
8be2e5bb4b
Merge pull request #559 from mariadb-corporation/MCOL-1699
MCOL-1699 - fix iss with adddbroot amazon
2018-09-13 11:22:47 -05:00
benthompson15
c8e041009c
Merge pull request #558 from mariadb-corporation/MCOL-1523
Mcol 1523
2018-09-13 11:22:21 -05:00