[MCOL-4926] Insert cache - Got an insert cache crashed error Created: 2021-11-16  Updated: 2023-12-15  Resolved: 2023-12-15

Status: Closed
Project: MariaDB ColumnStore
Component/s: DMLProc
Affects Version/s: 6.2.1
Fix Version/s: Icebox

Type: Bug Priority: Major
Reporter: Daniel Lee (Inactive) Assignee: Gagan Goel (Inactive)
Resolution: Won't Do Votes: 0
Labels: None

Issue Links:
Blocks
blocks MCOL-4914 Complete ColumnStore Cache Part 2 Open

 Description   

Build tests: 6.2.1-1 (#3379)

The test was to LDI 5 million rows 5 times, with a "select count" query after each iteration. The idea to make sure the insert cache is flushed before the each LDI. After the 2nd LDI, I received the follow error

ERROR 127 (HY000) at line 5: Table 'Got error while trying to flush insert cache: %d' is marked as crashed and should be repaired

The table was not usable after. The only way to get around is to drop the table and recreate it again.

I could not reproduce the error on purpose again.

What is the appropriate course of action when this error occurs? What and how should be repaired?

[centos8:root~]# mysql mytest -vvv < t2.sql 
--------------
show variables like "%columnstore_cache%"
--------------
 
+-----------------------------------+--------+
| Variable_name                     | Value  |
+-----------------------------------+--------+
| columnstore_cache_flush_threshold | 500000 |
| columnstore_cache_inserts         | ON     |
| columnstore_cache_use_import      | OFF    |
+-----------------------------------+--------+
3 rows in set (0.001 sec)
 
--------------
load data infile '/tmp/orders.tbl' into table orders fields terminated by "|"
--------------
 
Query OK, 5000000 rows affected (9.953 sec)
Records: 5000000  Deleted: 0  Skipped: 0  Warnings: 0
 
--------------
select count(*) from orders
--------------
 
+----------+
| count(*) |
+----------+
|  5000000 |
+----------+
1 row in set (2 min 46.348 sec)
 
--------------
load data infile '/tmp/orders.tbl' into table orders fields terminated by "|"
--------------
 
Query OK, 5000000 rows affected (9.537 sec)
Records: 5000000  Deleted: 0  Skipped: 0  Warnings: 0
 
--------------
select count(*) from orders
--------------
 
ERROR 127 (HY000) at line 5: Table 'Got error while trying to flush insert cache: %d' is marked as crashed and should be repaired
Bye



 Comments   
Comment by David Hall (Inactive) [ 2021-12-10 ]

While we haven't been able to reproduce this error, we need to look into the error message that was emitted:
ERROR 127 (HY000) at line 5: Table 'Got error while trying to flush insert cache: %d' is marked as crashed and should be repaired
There's a unfilled parameter there. Even so, this message doesn't say anything actionable to the user.
Some thought should be spent on the code looking at the causes of such an error and what would be a more useful message.

Generated at Thu Feb 08 02:54:03 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.