# Galera node crash on innodb buffer poll resize

**URL:** <https://forums.percona.com/t/galera-node-crash-on-innodb-buffer-poll-resize/11019>\
**Category:** Percona XtraDB Cluster 5.x\
**Tags:** percona, mysql\
**Created:** [June 24, 2021, 10:35am UTC](https://forums.percona.com/t/galera-node-crash-on-innodb-buffer-poll-resize/11019 "2021-06-24T10:35:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Petr\_Hrabal](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/petr_hrabal/32/3621_2.png) [@Petr\_Hrabal](https://forums.percona.com/u/Petr_Hrabal)\
**Post date:** [June 24, 2021, 10:35am UTC](https://forums.percona.com/t/galera-node-crash-on-innodb-buffer-poll-resize/11019/1 "2021-06-24T10:35:29Z")

</div>

I have experienced a Node crash while resizing innodb buffer pool…  
cluster node hanged during downsizing operation and after 10 minutes colapsed completely.  
I can provide full log but not on public forum - there is a lot of sensitive informations inside  
used version :mysqld 5.7.30-33-57-log  
anybody have any thoughts what might caused it ? I belived its supposed to be “safe” operation…

2021-06-22T16:28:47.276100Z 0 [ERROR] [FATAL] InnoDB: Semaphore wait has lasted \> 600 seconds. We intentionally crash the server because it appears to be hung.  
2021-06-22 18:28:47 0x7fa33e938700 InnoDB: Assertion failure in thread 140339106252544 in file ut0ut.cc line 922  
InnoDB: We intentionally generate a memory trap.  
InnoDB: Submit a detailed bug report to [http://bugs.mysql.com](http://bugs.mysql.com).  
InnoDB: If you get repeated assertion failures or crashes, even  
InnoDB: immediately after the mysqld startup, there may be  
InnoDB: corruption in the InnoDB tablespace. Please refer to  
InnoDB: [MySQL :: MySQL 5.7 Reference Manual :: 14.22.2 Forcing InnoDB Recovery](http://dev.mysql.com/doc/refman/5.7/en/forcing-innodb-recovery.html)  
InnoDB: about forcing recovery.  
16:28:47 UTC - mysqld got signal 6 ;  
This could be because you hit a bug. It is also possible that this binary  
or one of the libraries it was linked against is corrupt, improperly built,  
or misconfigured. This error can also be caused by malfunctioning hardware.  
Attempting to collect some information that could help diagnose the problem.  
As this is a crash and something is definitely wrong, the information  
collection process might fail.  
Please help us make Percona XtraDB Cluster better by reporting any  
bugs at [https://jira.percona.com/projects/PXC/issues](https://jira.percona.com/projects/PXC/issues)

key\_buffer\_size=25165824  
read\_buffer\_size=131072  
max\_used\_connections=500  
max\_threads=1001  
thread\_count=508  
connection\_count=499  
It is possible that mysqld could use up to  
key\_buffer\_size + (read\_buffer\_size + sort\_buffer\_size)\*max\_threads = 423348 K bytes of memory  
Hope that’s ok; if not, decrease some variables in the equation.

Thread pointer: 0x0  
Attempting backtrace. You can use the following information to find out  
where mysqld died. If you see no messages after this, something went  
terribly wrong…  
stack\_bottom = 0 thread\_stack 0x40000  
/usr/sbin/mysqld(my\_print\_stacktrace+0x2c)[0xee87dc]  
/usr/sbin/mysqld(handle\_fatal\_signal+0x459)[0x7ab149]  
/lib/x86\_64-linux-gnu/libpthread.so.0(+0xf890)[0x7faf37f25890]  
/lib/x86\_64-linux-gnu/libc.so.6(gsignal+0x37)[0x7faf35eaa067]  
/lib/x86\_64-linux-gnu/libc.so.6(abort+0x148)[0x7faf35eab448]  
/usr/sbin/mysqld[0x7799db]  
/usr/sbin/mysqld(\_ZN2ib5fatalD1Ev+0x15d)[0x118d8fd]  
/usr/sbin/mysqld(srv\_error\_monitor\_thread+0xaf2)[0x112da52]  
/lib/x86\_64-linux-gnu/libpthread.so.0(+0x8064)[0x7faf37f1e064]  
/lib/x86\_64-linux-gnu/libc.so.6(clone+0x6d)[0x7faf35f5d62d]  
You may download the Percona XtraDB Cluster operations manual by visiting  
[Percona XtraDB Cluster – The MySQL Clustering Solution](http://www.percona.com/software/percona-xtradb-cluster/). You may find information  
in the manual which will help you identify the cause of the crash.

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [June 24, 2021, 6:19pm UTC](https://forums.percona.com/t/galera-node-crash-on-innodb-buffer-poll-resize/11019/2 "2021-06-24T18:19:30Z")

</div>

I would say that what you are trying to do is not recommended. Growing the buffer pool is easy, but shrinking is hard. Read the MySQL server team’s blog on this: [MySQL :: Resizing the InnoDB Buffer Pool Online](https://mysqlserverteam.com/resizing-buffer-pool-online/)

Basically the shrink took too long and InnoDB crashed itself. This is built-in functionality to protect against infinite stalls. If you want to do this, you’ll need to force flush out dirty pages beforehand, possibly block writes to prevent locking, etc.

Since this is PXC, why not simply do a rolling restart to lower buffer pool? That’s the whole point to running such an HA configuration. I assume you have a load balancer or ProxySQL handling traffic? There should be no outage experienced if everything is configured correctly.

---

<div class="post-metadata">

**Author:** ![Petr\_Hrabal](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/petr_hrabal/32/3621_2.png) [@Petr\_Hrabal](https://forums.percona.com/u/Petr_Hrabal)\
**Post date:** [June 25, 2021, 8:59am UTC](https://forums.percona.com/t/galera-node-crash-on-innodb-buffer-poll-resize/11019/3 "2021-06-25T08:59:50Z")

</div>

actualy there is nothing in the blog saying that downsizing is not recomanded…  
actual downsizing was by 4G (32G -\>28G … and it took just few seconds on secondary node.)  
what was strange was that node practicaly stalled whole time ( many queries were blocked in similar way like when you make alter table on large table).  
as to the reload … well I have ProxySQL but not everything is connected there … (we are actualy migrating to that model now but we are not there yet)

but back to the topic … you can see that there is no dramatic activity in the performance …

 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/b/b51b452b9e106bbffab7d6de302a99ba53df6e38.png)

to me it feels like deadlock scenario … but its deadlock that can bring down whole node …

---

<div class="post-metadata">

**Author:** ![Petr\_Hrabal](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/petr_hrabal/32/3621_2.png) [@Petr\_Hrabal](https://forums.percona.com/u/Petr_Hrabal)\
**Post date:** [June 25, 2021, 9:02am UTC](https://forums.percona.com/t/galera-node-crash-on-innodb-buffer-poll-resize/11019/4 "2021-06-25T09:02:22Z")

</div>

and yeah, next time I will at least offload traffic from node before plaing with this…
