[MCOL-423] Issues with the I_S tables Created: 2016-11-28 Updated: 2016-12-07 Resolved: 2016-12-07 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.0.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Andrew Hutchings (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 2016-23, 2016-24 |
| Description |
|
After some testing today the following was found:
My guess is we aren't closing files for compressed size scan properly. |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2016-11-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Also:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrew Hutchings (Inactive) [ 2016-11-29 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
All the issues were down to FD and RAM leaks when using I_S.COLUMNSTORE_FILES which the pull request fixes. Also fixed my stupid mistake in calculating compression ratios. This bug only affects develop, no released versions. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2016-12-06 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Build tested: Source from Github [root@localhost columnstore]# cd mariadb-columnstore-server/ Merge pull request #20 from mariadb-corporation/ [root@localhost mariadb-columnstore-server]# cd mariadb-columnstore-engine/ Merge pull request #68 from mariadb-corporation/ Repeatedly queried from the columnstore_info schema and did not notice memory utilization keep going up. Also test compression radio using compressed and non-compressed tables, as well as a mix of the two. I did notice on issue with total_usage() and here is how I reproduced it. Environment used: 1 vm with 4gb memory and 1 cpu core (Not sure if this makes a difference) I started having a 1gt tpch1c database and another database with just the 1gb orders table. I dropped both databases and called total_usage(). The called did not return and mysqld was cranking at 99% cpu.
----------------
---------------- Query OK, 0 rows affected (0.09 sec) MariaDB [columnstore_info]> call table_usage(NULL);
-------------
------------- Query OK, 0 rows affected (0.18 sec) MariaDB [columnstore_info]> drop database tpch1c; MariaDB [columnstore_info]> drop database mytest; MariaDB [columnstore_info]> call total_usage(); The last call did not return. From another terminal: top - 20:51:14 up 2:30, 2 users, load average: 1.37, 1.06, 0.55 PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Lee (Inactive) [ 2016-12-07 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Build verified: Github source Per |