[MDEV-25476] Auto-create: DML exceeding LIMIT size does not cause a warning Created: 2021-04-21  Updated: 2021-04-22  Resolved: 2021-04-22

Status: Closed
Project: MariaDB Server
Component/s: Partitioning, Versioned Tables
Affects Version/s: N/A
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Aleksey Midenkov
Resolution: Not a Bug Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-20077 Warning on full history partition is ... Closed
relates to MDEV-25475 Auto-create: LIMIT partitions are not... Closed

 Description   

According to the description in MDEV-17554,

It is assumed that one DML command will not generate history rows more
than specified LIMIT. Otherwise history would overflow generated
partition, a warning would be printed, and user action would be
required to rebuild partitions

There is no warning.

In the test case below, the limit is 1000, and each DELETE moves 1200 rows into a historical partition. It is done twice in case of the first DELETE doesn't produce a warning due to MDEV-25475; but the second one does not do it either, neither in the client nor in the error log.

bb-10.6-midenok-MDEV-17554 edbc73ac48

MariaDB [test]> create or replace table t (x int) engine=MyISAM with system versioning partition by system_time limit 1000 auto;
Query OK, 0 rows affected (0.038 sec)
 
MariaDB [test]> insert into t select seq from seq_1_to_2500;
Query OK, 2500 rows affected (0.010 sec)
Records: 2500  Duplicates: 0  Warnings: 0
 
MariaDB [test]> delete from t limit 1200;
Query OK, 1200 rows affected (0.011 sec)
 
MariaDB [test]> delete from t limit 1200;
Query OK, 1200 rows affected (0.037 sec)



 Comments   
Comment by Aleksey Midenkov [ 2021-04-22 ]

Sorry, that part of documentation is also outdated. Since the way it is designed the LIMIT exceed will happen always the warning is not required.

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