Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reporter asserts on startup #205

Open
ayurchen opened this issue Jan 28, 2023 · 0 comments
Open

reporter asserts on startup #205

ayurchen opened this issue Jan 28, 2023 · 0 comments
Assignees

Comments

@ayurchen
Copy link
Member

ayurchen commented Jan 28, 2023

Switch case

case wsrep::server_state::s_initializing:
:

    case wsrep::server_state::s_initializing:
        if (s_disconnected_disconnected == state_)
            return s_disconnected_initializing;
        else if (s_joining_sst == state_)
            return s_joining_initializing;
        else if (s_joining_initializing == state_)
            return s_joining_initializing; // continuation
        else
        {
            assert(0);
            return state_;
        }

asserts on startup when state_ is wsrep::reporter::s_joining_initialized.
(Note that input is wsrep::server_state::state, output is wsrep::reporter::state - we translate one enum into a different enum)

so somehow the reporter state got past initialized_ -> that happens only after it gets wsrep::server_state::s_initialized, but then somehow it gets wsrep::server_state::s_initializing again...

@ayurchen ayurchen self-assigned this Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant