issue with Waiting for schema metadata lock and Freeing items getting stuck

I am having an issue important databases into a new Mariadb Galera cluster, it keeps getting hung on this line. I was having issues with the innodb pool size so I upped it to what the old cluster required, I also added a crap load of memory. I am not sure what is causing this to hang, can anyone help me?

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>MariaDB [(none)]> show processlist;
+-----+-------------+-----------+--------------------+---------+------+----------------------------------+------------------------------------------------------------------------------------------------------+----------+
| Id | User | Host | db | Command | Time | State | Info | Progress |
+-----+-------------+-----------+--------------------+---------+------+----------------------------------+------------------------------------------------------------------------------------------------------+----------+
| 1 | system user | | NULL | Sleep | 4738 | wsrep aborter idle | NULL | 0.000 |
| 2 | system user | | | Sleep | 2724 | Waiting for schema metadata lock | alter database `citation_index` CHARACTER SET utf8 | 0.000 |
| 547 | root | localhost | citation_index | Query | 2724 | Freeing items | INSERT INTO `vectors` VALUES (1033886,'[0.039515189826488495,-0.03698547184467316,0.0510983131825923 | 0.000 |
| 550 | root | localhost | NULL | Query | 0 | starting | show processlist | 0.000 |
| 807 | root | localhost | information_schema | Sleep | 2600 | | NULL | 0.000 |
+-----+-------------+-----------+--------------------+---------+------+----------------------------------+------------------------------------------------------------------------------------------------------+----------+
5 rows in set (0.000 sec)
MariaDB [(none)]> SHOW ENGINE INNODB STATUS G
*************************** 1. row ***************************
Type: InnoDB
Name:
Status:
=====================================
2024-05-31 12:03:18 0x7fef7c13c640 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 55 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 27 srv_active, 0 srv_shutdown, 4764 srv_idle
srv_master_thread log flush and writes: 4791
----------
SEMAPHORES
----------
------------
TRANSACTIONS
------------
Trx id counter 967581
Purge done for trx's n:o < 967579 undo n:o < 0 state: running but idle
History list length 0
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION (0x7fef9ac3e680), not started
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION (0x7fef9ac3db80), not started
0 lock struct(s), heap size 1128, 0 row lock(s)
--------
FILE I/O
--------
Pending flushes (fsync): 0
18246 OS file reads, 913003 OS file writes, 14403 OS fsyncs
0.00 reads/s, 0 avg bytes/read, 101.00 writes/s, 1.00 fsyncs/s
---
LOG
---
Log sequence number 481909696379
Log flushed up to 481909696379
Pages flushed up to 481118331328
Last checkpoint at 481118297614
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 153578635264
Dictionary memory allocated 911765208
Buffer pool size 9280960
Free buffers 8297736
Database pages 983224
Old database pages 362967
Modified db pages 72290
Percent of dirty pages(LRU & free pages): 0.779
Max dirty pages percent: 90.000
Pending reads 0
Pending writes: LRU 0, flush list 0
Pages made young 168, not young 0
0.00 youngs/s, 0.00 non-youngs/s
Pages read 18112, created 965442, written 893163
0.00 reads/s, 0.00 creates/s, 99.00 writes/s
No buffer pool page gets since the last printout
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 983224, unzip_LRU len: 0
I/O sum[5940]:cur[990], unzip sum[0]:cur[0]
--------------
ROW OPERATIONS
--------------
0 read views open inside InnoDB
state: sleeping
----------------------------
END OF INNODB MONITOR OUTPUT
============================
1 row in set (0.001 sec)
</code>
<code>MariaDB [(none)]> show processlist; +-----+-------------+-----------+--------------------+---------+------+----------------------------------+------------------------------------------------------------------------------------------------------+----------+ | Id | User | Host | db | Command | Time | State | Info | Progress | +-----+-------------+-----------+--------------------+---------+------+----------------------------------+------------------------------------------------------------------------------------------------------+----------+ | 1 | system user | | NULL | Sleep | 4738 | wsrep aborter idle | NULL | 0.000 | | 2 | system user | | | Sleep | 2724 | Waiting for schema metadata lock | alter database `citation_index` CHARACTER SET utf8 | 0.000 | | 547 | root | localhost | citation_index | Query | 2724 | Freeing items | INSERT INTO `vectors` VALUES (1033886,'[0.039515189826488495,-0.03698547184467316,0.0510983131825923 | 0.000 | | 550 | root | localhost | NULL | Query | 0 | starting | show processlist | 0.000 | | 807 | root | localhost | information_schema | Sleep | 2600 | | NULL | 0.000 | +-----+-------------+-----------+--------------------+---------+------+----------------------------------+------------------------------------------------------------------------------------------------------+----------+ 5 rows in set (0.000 sec) MariaDB [(none)]> SHOW ENGINE INNODB STATUS G *************************** 1. row *************************** Type: InnoDB Name: Status: ===================================== 2024-05-31 12:03:18 0x7fef7c13c640 INNODB MONITOR OUTPUT ===================================== Per second averages calculated from the last 55 seconds ----------------- BACKGROUND THREAD ----------------- srv_master_thread loops: 27 srv_active, 0 srv_shutdown, 4764 srv_idle srv_master_thread log flush and writes: 4791 ---------- SEMAPHORES ---------- ------------ TRANSACTIONS ------------ Trx id counter 967581 Purge done for trx's n:o < 967579 undo n:o < 0 state: running but idle History list length 0 LIST OF TRANSACTIONS FOR EACH SESSION: ---TRANSACTION (0x7fef9ac3e680), not started mysql tables in use 1, locked 1 0 lock struct(s), heap size 1128, 0 row lock(s) ---TRANSACTION (0x7fef9ac3db80), not started 0 lock struct(s), heap size 1128, 0 row lock(s) -------- FILE I/O -------- Pending flushes (fsync): 0 18246 OS file reads, 913003 OS file writes, 14403 OS fsyncs 0.00 reads/s, 0 avg bytes/read, 101.00 writes/s, 1.00 fsyncs/s --- LOG --- Log sequence number 481909696379 Log flushed up to 481909696379 Pages flushed up to 481118331328 Last checkpoint at 481118297614 ---------------------- BUFFER POOL AND MEMORY ---------------------- Total large memory allocated 153578635264 Dictionary memory allocated 911765208 Buffer pool size 9280960 Free buffers 8297736 Database pages 983224 Old database pages 362967 Modified db pages 72290 Percent of dirty pages(LRU & free pages): 0.779 Max dirty pages percent: 90.000 Pending reads 0 Pending writes: LRU 0, flush list 0 Pages made young 168, not young 0 0.00 youngs/s, 0.00 non-youngs/s Pages read 18112, created 965442, written 893163 0.00 reads/s, 0.00 creates/s, 99.00 writes/s No buffer pool page gets since the last printout Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s LRU len: 983224, unzip_LRU len: 0 I/O sum[5940]:cur[990], unzip sum[0]:cur[0] -------------- ROW OPERATIONS -------------- 0 read views open inside InnoDB state: sleeping ---------------------------- END OF INNODB MONITOR OUTPUT ============================ 1 row in set (0.001 sec) </code>
MariaDB [(none)]> show processlist;
+-----+-------------+-----------+--------------------+---------+------+----------------------------------+------------------------------------------------------------------------------------------------------+----------+
| Id  | User        | Host      | db                 | Command | Time | State                            | Info                                                                                                 | Progress |
+-----+-------------+-----------+--------------------+---------+------+----------------------------------+------------------------------------------------------------------------------------------------------+----------+
|   1 | system user |           | NULL               | Sleep   | 4738 | wsrep aborter idle               | NULL                                                                                                 |    0.000 |
|   2 | system user |           |                    | Sleep   | 2724 | Waiting for schema metadata lock | alter database `citation_index` CHARACTER SET utf8                                                   |    0.000 |
| 547 | root        | localhost | citation_index     | Query   | 2724 | Freeing items                    | INSERT INTO `vectors` VALUES (1033886,'[0.039515189826488495,-0.03698547184467316,0.0510983131825923 |    0.000 |
| 550 | root        | localhost | NULL               | Query   |    0 | starting                         | show processlist                                                                                     |    0.000 |
| 807 | root        | localhost | information_schema | Sleep   | 2600 |                                  | NULL                                                                                                 |    0.000 |
+-----+-------------+-----------+--------------------+---------+------+----------------------------------+------------------------------------------------------------------------------------------------------+----------+
5 rows in set (0.000 sec)

MariaDB [(none)]> SHOW ENGINE INNODB STATUS G
*************************** 1. row ***************************
  Type: InnoDB
  Name: 
Status: 
=====================================
2024-05-31 12:03:18 0x7fef7c13c640 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 55 seconds
-----------------
BACKGROUND THREAD
-----------------
srv_master_thread loops: 27 srv_active, 0 srv_shutdown, 4764 srv_idle
srv_master_thread log flush and writes: 4791
----------
SEMAPHORES
----------
------------
TRANSACTIONS
------------
Trx id counter 967581
Purge done for trx's n:o < 967579 undo n:o < 0 state: running but idle
History list length 0
LIST OF TRANSACTIONS FOR EACH SESSION:
---TRANSACTION (0x7fef9ac3e680), not started
mysql tables in use 1, locked 1
0 lock struct(s), heap size 1128, 0 row lock(s)
---TRANSACTION (0x7fef9ac3db80), not started
0 lock struct(s), heap size 1128, 0 row lock(s)
--------
FILE I/O
--------
Pending flushes (fsync): 0
18246 OS file reads, 913003 OS file writes, 14403 OS fsyncs
0.00 reads/s, 0 avg bytes/read, 101.00 writes/s, 1.00 fsyncs/s
---
LOG
---
Log sequence number 481909696379
Log flushed up to   481909696379
Pages flushed up to 481118331328
Last checkpoint at  481118297614
----------------------
BUFFER POOL AND MEMORY
----------------------
Total large memory allocated 153578635264
Dictionary memory allocated 911765208
Buffer pool size   9280960
Free buffers       8297736
Database pages     983224
Old database pages 362967
Modified db pages  72290
Percent of dirty pages(LRU & free pages): 0.779
Max dirty pages percent: 90.000
Pending reads 0
Pending writes: LRU 0, flush list 0
Pages made young 168, not young 0
0.00 youngs/s, 0.00 non-youngs/s
Pages read 18112, created 965442, written 893163
0.00 reads/s, 0.00 creates/s, 99.00 writes/s
No buffer pool page gets since the last printout
Pages read ahead 0.00/s, evicted without access 0.00/s, Random read ahead 0.00/s
LRU len: 983224, unzip_LRU len: 0
I/O sum[5940]:cur[990], unzip sum[0]:cur[0]
--------------
ROW OPERATIONS
--------------
0 read views open inside InnoDB
state: sleeping
----------------------------
END OF INNODB MONITOR OUTPUT
============================

1 row in set (0.001 sec)

I have tried more memory, as the cluster nodes would fail previously. The nodes are stable now and increased innodb_buffer_pool_size

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật