[MDEV-20345] Warning of full history partition is one command late Created: 2019-08-14  Updated: 2022-04-29  Resolved: 2020-01-08

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

Type: Bug Priority: Major
Reporter: Aleksey Midenkov Assignee: Aleksey Midenkov
Resolution: Duplicate Votes: 0
Labels: performance

Issue Links:
Duplicate
duplicates MDEV-20077 Warning on full history partition is ... Closed
Relates
relates to MDEV-20336 Assertion bitmap_is_set(read_partitio... Closed

 Description   

Reproduce

# Truncate partitioned
create or replace table t (a int) with system versioning
partition by system_time limit 1 partitions 3;
insert into t values (1);
update t set a= 2;
update t set a= 3;
delete history from t;
Warnings:
Warning	4114	Versioned table `test`.`t`: last HISTORY partition (`p1`) is out of LIMIT, need more HISTORY partitions
# The above warning is one command late (MDEV-20345) ^^^

Optimize calling vers_set_hist_part()

1. Look for TODO in `ha_partition::external_lock()` and `ha_partition::start_stmt()` and add more excluding conditions.

2. Add test cases for INSERT SELECT, REPLACE SELECT, etc.

3. Test INSERT and history modification setting. Should limits be followed when inserting into history partition?



 Comments   
Comment by Elena Stepanova [ 2020-01-06 ]

Looks like a duplicate of MDEV-20077.

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