Details
-
Task
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
Description
Purge thread does take shared lock on innodb dictionary lock while processing the undo log record to avoid the dropping of table. But it also blocks DDL for
the InnoDB. There are few issues exist for virtual column computation.
Because purge thread acquires mdl lock for virtual column computation and could
have deadlock with DDL. (fixed in 10.2+)
Allow InnoDB background thread to take MDL lock on the table. In that case, it blocks DDL only for that table.
For FOREIGN KEY constraint checks, we would prefer not to acquire dict_operation_lock S-latch, and rely on the correct acquisition of MDL on the SQL layer (to be covered by MDEV-21175).
Attachments
Issue Links
- causes
-
MDEV-21282 Assertion 'mariadb_table' failed in gcol.innodb_virtual_debug_purge
- Closed
-
MDEV-21327 Notify tpool threadpool about MDL waits
- Closed
-
MDEV-21546 main.backup_stages occasionally fails with lock wait timeout
- Closed
-
MDEV-22060 MSAN use-of-uninitialized-value in main.query_cache_innodb
- Closed
-
MDEV-22751 Uninitialized tbl_len in dict_acquire_mdl_shared() in purge after DDL
- Closed
-
MDEV-22824 Buffer overflow in dict_table_t::parse_name()
- Closed
-
MDEV-23422 innodb_zip.restart fails in buildbot with wrong result
- Closed
-
MDEV-35567 Unexpected table metadata locks held by background operations can cause phantom ER_LOCK_WAIT_TIMEOUT and possibly other errors
- Open
- relates to
-
MDEV-21175 Remove dict_table_t::n_foreign_key_checks_running from InnoDB
- Closed
-
MDEV-21281 main.backup_interaction fails intermittently
- Closed
-
MDEV-21400 encryption.innochecksum fails during shutdown
- Closed
-
MDEV-23026 Server hangs on purge or failing assertions `!rw_lock_own_flagged(lock, RW_LOCK_FLAG_X | RW_LOCK_FLAG_S)' / `!rw_lock_own(lock, RW_LOCK_S)'
- Closed
-
MDEV-24661 The test innodb.innodb_wl6326_big often times out
- Closed
-
MDEV-18654 Failing assertion: sym_node->table != NULL in buildbot with innodb_fts.sync_ddl and outside
- Closed
-
MDEV-20874 Wrong handling of 'table was dropped' error in purge thread
- Stalled
-
MDEV-20876 Remove node->vcol_op_failed() method
- Closed
-
MDEV-21283 InnoDB: MySQL is trying to drop database…open handles to table …`#sql-ib1148`
- Closed
-
MDEV-21344 Valgrind uninitialised value warnings in dict_acquire_mdl_shared / dict_table_open_on_id
- Closed
-
MDEV-22867 Assertion `instant.n_core_fields == n_core_fields' failed in dict_index_t::instant_add_field
- Closed
-
MDEV-22958 innodb.instant_alter_debug fails in buildbot with wrong result
- Closed