Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.0.26, 10.1.14
-
None
-
10.1.18
Description
Test case:
--source include/have_xtradb.inc
|
|
CREATE TABLE t1(a INT) ENGINE=InnoDB;
|
SELECT * FROM t1;
|
--send SET @@global.table_open_cache=400;
|
|
connect(con1, localhost, root);
|
ALTER TABLE t1 COMMENT='abc';
|
disconnect con1;
|
|
connection default;
|
--reap
|
DROP TABLE t1;
|
Apply this patch to make it stuck reliably:
diff --git a/sql/table_cache.cc b/sql/table_cache.cc
|
index 097f37d..b46a620 100644
|
--- a/sql/table_cache.cc
|
+++ b/sql/table_cache.cc
|
@@ -865,6 +865,8 @@ void tdc_release_share(TABLE_SHARE *share)
|
}
|
mysql_mutex_unlock(&share->tdc.LOCK_table_share);
|
|
+ if (!strcmp(share->table_name.str, "t1") && !share->tdc.flushed)
|
+ sleep(1);
|
mysql_mutex_lock(&LOCK_unused_shares);
|
mysql_mutex_lock(&share->tdc.LOCK_table_share);
|
if (share->tdc.flushed)
|
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Sergey Vojtovich [ svoj ] | Sergei Golubchik [ serg ] |
Status | Open [ 1 ] | In Review [ 10002 ] |
Affects Version/s | 10.2.0 [ 20700 ] |
Fix Version/s | 10.2 [ 14601 ] |
Sprint | 10.1.18 [ 98 ] |
Assignee | Sergei Golubchik [ serg ] | Sergey Vojtovich [ svoj ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Fix Version/s | 10.1.18 [ 22110 ] | |
Fix Version/s | 10.0.28 [ 22107 ] | |
Fix Version/s | 10.0 [ 16000 ] | |
Fix Version/s | 10.1 [ 16100 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 76301 ] | MariaDB v4 [ 150572 ] |