[MDEV-30419] Unhandled exception in wsrep::server_state::sst_received Created: 2023-01-17  Updated: 2023-01-20  Resolved: 2023-01-20

Status: Closed
Project: MariaDB Server
Component/s: Galera
Fix Version/s: 10.4.28, 10.5.19, 10.6.12, 10.7.8, 10.8.7, 10.9.5, 10.10.3

Type: Task Priority: Major
Reporter: Jan Lindström (Inactive) Assignee: Jan Lindström (Inactive)
Resolution: Fixed Votes: 0
Labels: None


 Description   

void wsrep::server_state::wait_until_state(
    wsrep::unique_lock<wsrep::mutex>& lock,
    enum wsrep::server_state::state state) const
{
    ++state_waiters_[state];
    while (state_ != state)
    {
        cond_.wait(lock);
        // If the waiter waits for any other state than disconnecting
        // or disconnected and the state has been changed to disconnecting,
        // this usually means that some error was encountered
        if (state != s_disconnecting && state != s_disconnected
            && state_ == s_disconnecting)
        {
            throw wsrep::runtime_error("State wait was interrupted");
        }
    }

This exception can be bloated to MariaDB server code in wsrep::server_state::sst_received (this=0x555557fea480, cs=..., error=0) at /home/jan/mysql/10.4/wsrep-lib/src/server_state.cpp:727


Generated at Thu Feb 08 10:16:06 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.