[MCOL-454] columnstore_info's total_usage() and table_usage() reported 0 usage on multi-node configuration Created: 2016-12-08 Updated: 2023-10-26 Resolved: 2017-01-20 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | 1.0.6 |
| Fix Version/s: | 1.0.7 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Daniel Lee (Inactive) | Assignee: | Daniel Lee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: | |||
| Sprint: | 2016-24, 2016-25, 2017-01, 2017-2 |
| Description |
|
Build tested: 1.0.6-1 mcsadmin> getsoft Name : mariadb-columnstore-platform I noticed the issue yesterday. Today I did more testing starting with brand new installations and found that the issue occurs on multi-node installations. That makes me wonder if the info used for the report is actually on the PM1. It works for single installation because both UM and PM functionalities are on the same server. On 1UM2PM installation (It was on 1UM4PM yesterday) MariaDB [columnstore_info]> call total_usage();
----------------
---------------- Query OK, 0 rows affected (0.02 sec) MariaDB [columnstore_info]> call table_usage(NULL,NULL);
-------------
------------- Query OK, 0 rows affected (0.31 sec) It works on a single node installation MariaDB [columnstore_info]> call total_usage();
----------------
---------------- Query OK, 0 rows affected (0.07 sec) MariaDB [columnstore_info]> call table_usage(NULL,NULL);
-------------
------------- |
| Comments |
| Comment by Andrew Hutchings (Inactive) [ 2016-12-14 ] | ||||||||
|
Confirmed, the path retrieval isn't working properly for remote nodes so we aren't requesting the file size for the right paths. We are also requesting file sizes the wrong way. | ||||||||
| Comment by Andrew Hutchings (Inactive) [ 2016-12-14 ] | ||||||||
|
This now uses a remote command to WriteEngine for the information_schema.columnstore_files table and correctly builds the file name. | ||||||||
| Comment by Daniel Lee (Inactive) [ 2017-01-19 ] | ||||||||
|
mcsadmin> getcal mcsadmin> getsoft Name : mariadb-columnstore-platform Started with some data: MariaDB [columnstore_info]> call total_usage();
----------------
---------------- I then cpimported a 7.3gb lineitem source file. [root@localhost ~]# /usr/local/mariadb/columnstore/bin/cpimport mytest lineitem /data/qa/source/dbt3/10g/lineitem.tbl [root@localhost ~]# ls -alh /data/qa/source/dbt3/10g/lineitem.tbl total_usage() reported 78.6 gb for total_data_size MariaDB [columnstore_info]> call total_usage();
----------------
---------------- | ||||||||
| Comment by Andrew Hutchings (Inactive) [ 2017-01-19 ] | ||||||||
|
Additional pull request to cover the case in I_S.columnstore_extents where a dict column can have a block offset > 0 and HWM = 0 which breaks the DATA_SIZE calculation. This fixes the addition problem Daniel observed. | ||||||||
| Comment by Daniel Lee (Inactive) [ 2017-01-20 ] | ||||||||
|
Build verified: 1.0-7-1 mcsadmin> getsoft Name : mariadb-columnstore-platform retested my last scenario and got: MariaDB [columnstore_info]> call total_usage();
----------------
---------------- |