mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-16023 Unfortunate error message WARN_VERS_PART_FULL (partition <name> is full) when rotation time for the last interval passed
* remove one case of WARN_VERS_PART_FULL
This commit is contained in:
@ -8,11 +8,7 @@ insert t1 values (1);
|
|||||||
delete from t1;
|
delete from t1;
|
||||||
set timestamp=unix_timestamp('2001-02-04 10:20:50');
|
set timestamp=unix_timestamp('2001-02-04 10:20:50');
|
||||||
insert t1 values (2);
|
insert t1 values (2);
|
||||||
Warnings:
|
|
||||||
Warning 4114 Versioned table `test`.`t1`: partition `p1` is full, add more HISTORY partitions
|
|
||||||
delete from t1;
|
delete from t1;
|
||||||
Warnings:
|
|
||||||
Warning 4114 Versioned table `test`.`t1`: partition `p1` is full, add more HISTORY partitions
|
|
||||||
select subpartition_name,partition_description,table_rows from information_schema.partitions where table_schema='test' and table_name='t1';
|
select subpartition_name,partition_description,table_rows from information_schema.partitions where table_schema='test' and table_name='t1';
|
||||||
subpartition_name partition_description table_rows
|
subpartition_name partition_description table_rows
|
||||||
p1sp0 2001-02-04 10:20:30 1
|
p1sp0 2001-02-04 10:20:30 1
|
||||||
@ -55,4 +51,20 @@ i
|
|||||||
explain partitions select * from t1 for system_time all where row_end = @ts;
|
explain partitions select * from t1 for system_time all where row_end = @ts;
|
||||||
id select_type table partitions type possible_keys key key_len ref rows Extra
|
id select_type table partitions type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 p1_p1sp0,p1_p1sp1 # NULL NULL NULL NULL # #
|
1 SIMPLE t1 p1_p1sp0,p1_p1sp1 # NULL NULL NULL NULL # #
|
||||||
|
#
|
||||||
|
# MDEV-16023 Unfortunate error message WARN_VERS_PART_FULL
|
||||||
|
#
|
||||||
|
set timestamp= unix_timestamp('2020-07-29 10:30:10');
|
||||||
|
create or replace table t1 (a int) with system versioning
|
||||||
|
partition by system_time interval 1 second (
|
||||||
|
partition p0 history,
|
||||||
|
partition p1 history,
|
||||||
|
partition pc current
|
||||||
|
);
|
||||||
|
set timestamp= unix_timestamp('2020-07-29 10:30:14');
|
||||||
|
insert into t1 values (1),(2),(3);
|
||||||
|
show warnings;
|
||||||
|
Level Code Message
|
||||||
|
# Cleanup
|
||||||
|
set timestamp= default;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
@ -37,4 +37,22 @@ select * from t1 for system_time all where row_end = @ts;
|
|||||||
--replace_column 5 # 10 # 11 #
|
--replace_column 5 # 10 # 11 #
|
||||||
explain partitions select * from t1 for system_time all where row_end = @ts;
|
explain partitions select * from t1 for system_time all where row_end = @ts;
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # MDEV-16023 Unfortunate error message WARN_VERS_PART_FULL
|
||||||
|
--echo #
|
||||||
|
|
||||||
|
set timestamp= unix_timestamp('2020-07-29 10:30:10');
|
||||||
|
create or replace table t1 (a int) with system versioning
|
||||||
|
partition by system_time interval 1 second (
|
||||||
|
partition p0 history,
|
||||||
|
partition p1 history,
|
||||||
|
partition pc current
|
||||||
|
);
|
||||||
|
|
||||||
|
set timestamp= unix_timestamp('2020-07-29 10:30:14');
|
||||||
|
insert into t1 values (1),(2),(3);
|
||||||
|
show warnings;
|
||||||
|
|
||||||
|
--echo # Cleanup
|
||||||
|
set timestamp= default;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
@ -875,7 +875,6 @@ void partition_info::vers_set_hist_part(THD *thd)
|
|||||||
if (next->range_value > thd->query_start())
|
if (next->range_value > thd->query_start())
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
goto warn;
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
warn:
|
warn:
|
||||||
|
Reference in New Issue
Block a user