[MDEV-28288] System versioning doesn't support correct work for engine=connect and doesn't always give any warnings/errors Created: 2022-04-11  Updated: 2023-04-27

Status: Confirmed
Project: MariaDB Server
Component/s: Versioned Tables
Affects Version/s: 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9
Fix Version/s: 10.4, 10.5, 10.6

Type: Bug Priority: Major
Reporter: Lena Startseva Assignee: Aleksey Midenkov
Resolution: Unresolved Votes: 0
Labels: None

Attachments: Text File test.txt    
Issue Links:
Relates
relates to MDEV-15968 System versioning and CONNECT engine ... Confirmed
relates to MDEV-17554 Auto-create history partitions for sy... Closed

 Description   

If add for engine=connect "system versioning" there is no any warnings/errors on creating table and inserting data, but "select" gives an empty result, "update" doesn't change value and "delete" fails with error:

Test:

create table t2 (
  x int,
  y int
) engine=connect table_type=FIX file_name='test.txt' with system versioning;
 
insert into t2 values (1,1),(2,2),(3,3),(4,4),(5,5);
select * from t2;
 
update t2 set x=10 where y=4;
select * from t2;
delete from t2 where x=1;
select * from t2;
 
drop table t2;

Result:

create table t2 (
x int,
y int
) engine=connect table_type=FIX file_name='/test.txt' with system versioning;
insert into t2 values (1,1),(2,2),(3,3),(4,4),(5,5);
select * from t2;
x	y
update t2 set x=10 where y=4;
select * from t2;
x	y
delete from t2 where x=1;
 
mysqltest: At line 11: query 'delete from t2 where x=1' failed: ER_CRASHED_ON_USAGE (1194): Table 't2' is marked as crashed and should be repaired



 Comments   
Comment by Elena Stepanova [ 2022-04-13 ]

Indeed it isn't. The generic problem was stated in MDEV-15968, but the combination of versioning and Connect hasn't been prohibited.

Generated at Thu Feb 08 09:59:33 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.