I think my question is impossible but I sure I do not know everything.
In my opinion, when mysqld restart, some transaction is not still completed will be rollback on startup. Mysqld use undo log to do it. But is there any way to keep long transactions on restarting mysqld ?
I am using MariaDB Galera with three nodes.