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

Mdev 30963 #304

Open
wants to merge 4 commits into
base: 10.6
Choose a base branch
from
Open

Mdev 30963 #304

wants to merge 4 commits into from

Commits on Mar 28, 2023

  1. MDEV-30413 : run sequence nextval got [Note] WSREP: MDL BF-BF conflic…

    …t and [ERROR] Aborting
    
    Sequence objects are implemented using special tables.
    These tables do not have primary key and only one row.
    NEXTVAL is basically update from existing value to new
    value. In Galera this could mean that two write-sets
    from different nodes do not conflict and this could
    lead situation where write-sets are executed
    concurrently and possibly in wrong seqno order.
    
    This is fixed by using table-level exclusive key for
    SEQUENCE updates. Note that this naturally works
    correctly only if InnoDB storage engine is used for
    sequence.
    
    This fix does not contain a test case because while
    it is possible to syncronize appliers using dbug_sync
    it was too hard to syncronize MDL-lock requests to
    exact objects. Testing done for this fix is documented
    on MDEV.
    janlindstrom committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    c27c9e9 View commit details
    Browse the repository at this point in the history
  2. MDEV-25045 : Assertion `client_state_.mode() != wsrep::client_state::…

    …m_toi' failed in int wsrep::transaction::before_commit()
    
    CREATE [TEMPORARY] SEQUENCE is internally CREATE+INSERT (initial value)
    and it is replicated using statement based replication. In Galera
    we use either TOI or RSU so we should skip commit time hooks
    for it.
    janlindstrom committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    baf3273 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2023

  1. MDEV-30963 : Assertion failure !lock.was_chosen_as_deadlock_victim in…

    … trx0trx.h:1065
    
    Race condition between trx_t::commit_cleanup() on transaction that
    has empty write set and MDL BF-kill.
    
    DBUG_SYNC point and test case to reproduce crash.
    janlindstrom committed Mar 30, 2023
    Configuration menu
    Copy the full SHA
    1867432 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2023

  1. Idea for fix

    janlindstrom committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    8a31c9f View commit details
    Browse the repository at this point in the history