[MDEV-21747] Refactor partition auto-creation via direct fast_alter_partition_table() Created: 2020-02-17  Updated: 2020-03-03  Resolved: 2020-03-02

Status: Closed
Project: MariaDB Server
Component/s: Data Definition - Alter Table, Partitioning, Versioned Tables
Fix Version/s: N/A

Type: Task Priority: Major
Reporter: Aleksey Midenkov Assignee: Aleksey Midenkov
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
Relates
relates to MDEV-17554 Auto-create history partitions for sy... Closed

 Description   

Asynchronous solution of MDEV-17554 has drawback of race condition:

1. statement thread unlocks table, finishes execution;
2. table is dropped, new table with same name is created;
3. alter thread tries to add partition to new table.

The worst consequence: new table has additional partition unexpectedly.

Instead of asynchronous thread make direct `fast_alter_partition_table()` call at the finish of DML statement.


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