[MCOL-5323] Check whether INSERT..SELECT is atomic Created: 2022-11-28  Updated: 2023-07-01

Status: Open
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: 22.08.4
Fix Version/s: Icebox

Type: Task Priority: Minor
Reporter: Roman Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

A simple scenario isn't deterministic. It occasionally fails to return a row with the last select b/c INSERT..SELECT lacks atomicity thus there is a small delay b/w time A when INSERT..SELECT returns and time B when records become available.

CREATE DATABASE mcs25_db;
USE mcs25_db;
 
CREATE TABLE t_cs(
c1 INT,
c2 INT
)ENGINE=Columnstore;
 
CREATE TABLE t_myisam(
c1 INT,
c2 INT
)ENGINE=MyISAM;
 
INSERT INTO t_cs SELECT * FROM t_myisam;
SELECT * FROM t_cs;


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