[MCOL-5367] in a transaction, insert..select fails +multinode+columnstore_use_import_for_batchinsert=ON Created: 2022-12-21  Updated: 2023-01-19  Resolved: 2023-01-19

Status: Closed
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: 22.08.3, 22.08.4, 22.08.7
Fix Version/s: 22.08.8

Type: Bug Priority: Blocker
Reporter: Daniel Lee (Inactive) Assignee: Gagan Goel (Inactive)
Resolution: Fixed Votes: 0
Labels: cluster

Assigned for Review: Roman Roman
Assigned for Testing: Daniel Lee Daniel Lee (Inactive)

 Description   

Build tested: 22.08.03, 22.8.4, 22.08.7

On a multi-node cluster, in a transaction, insert..select reported rows inserted, but query show empty table.
with columnstore_use_import_for_batchinsert=ON

MariaDB [mytest]> create table t1 (c1 int) engine=columnstore;
Query OK, 0 rows affected (0.119 sec)
 
MariaDB [mytest]> insert into t1 values (1),(2);
Query OK, 2 rows affected (0.132 sec)
Records: 2  Duplicates: 0  Warnings: 0
 
MariaDB [mytest]> select * from t1;
+------+
| c1   |
+------+
|    1 |
|    2 |
+------+
2 rows in set (0.023 sec)
 
MariaDB [mytest]> create table t2 (c1 int) engine=columnstore;
Query OK, 0 rows affected (0.209 sec)
 
MariaDB [mytest]> start transaction;
Query OK, 0 rows affected (0.000 sec)
 
MariaDB [mytest]> insert into t2 select * from t1;
Query OK, 2 rows affected (1.125 sec)
Records: 2  Duplicates: 0  Warnings: 0
 
MariaDB [mytest]> select * from t2;
Empty set (0.022 sec)
 
MariaDB [mytest]> exit



 Comments   
Comment by Daniel Lee (Inactive) [ 2022-12-21 ]

The same test scenario works fine in release 6.4.4-1.

Comment by Daniel Lee (Inactive) [ 2022-12-21 ]

It seems that the issue happens when columnstore_use_import_for_batchinsert is set to ON. It works fine when it is set to ALWAYS.

Comment by Daniel Lee (Inactive) [ 2023-01-19 ]

Build verified: 22.08.8 (Drone build #6523)

Verified with columnstore_use_import_for_batchinsert set to ON and ALWAYS.

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