[MDEV-14770] Versioned temporary table is marked as crashed and should be repaired Created: 2017-12-25  Updated: 2018-07-17  Resolved: 2018-07-17

Status: Closed
Project: MariaDB Server
Component/s: Data Definition - Temporary
Affects Version/s: N/A
Fix Version/s: 10.3.4

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Problem/Incident
is caused by MDEV-14769 Temporary table can be altered into s... Closed

 Description   

Note: The problem is likely to go away after MDEV-14769 is fixed, so it will stay draft for now.

CREATE TEMPORARY TABLE table11_aria ( `col_int_key` INT) ENGINE=Aria;
INSERT INTO table11_aria VALUES (1),(2);
SET STATEMENT system_versioning_alter_history=KEEP FOR ALTER TABLE `table11_aria` ADD SYSTEM VERSIONING, ROW_FORMAT=DYNAMIC;
UPDATE table11_aria SET `col_int_key` = 3;
SET STATEMENT system_versioning_alter_history=KEEP FOR ALTER TABLE `table11_aria` ADD COLUMN IF NOT EXISTS `vers_end` BIGINT UNSIGNED GENERATED ALWAYS AS ROW END;
DELETE HISTORY FROM `table11_aria`;
OPTIMIZE TABLE `table11_aria`;
UPDATE table11_aria SET `col_int_key` = 2;

bb-10.3-temporal ea49441c41

mysqltest: At line 8: query 'UPDATE table11_aria SET `col_int_key` = 2' failed: 1194: Table 'table11_aria' is marked as crashed and should be repaired



 Comments   
Comment by Elena Stepanova [ 2018-07-17 ]

It has indeed gone away, apparently as a result of MDEV-14769 fix.

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