Repository navigation
Knielsen mdev41658 galera mark start commit - #6138
Open
janlindstrom wants to merge 2 commits into
Open
janlindstrom wants to merge 2 commits into
janlindstrom wants to merge 2 commits into
Conversation
|
|
…illed A parallel-replication worker would assert in ha_rollback_trans() because wsrep_after_statement() and ha_commit_trans()'s wsrep error path could roll back its transaction before retry_event_group() unmarks it as committing. Skip mark_start_commit() when using Galera. Galera certification can cause rollback of parallel replication transactions during commit when there is a conflicting transaction outside of replication. This can cause to start the next GCO too early, while the previous GCO still needs to rollback and retry. Do not fail replication with an error when wsrep_after_statement() fails due to a retryable error like brute-force kill. Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
rpt_handle_event() now calls wsrep_after_statement() unconditionally, so the provider handle and commit-order slot are released even when apply_event_and_update_pos_for_parallel() already failed. Its own failure maps through wsrep_override_error()/wsrep_current_error(), covering every wsrep::client_error code instead of only e_deadlock_error and e_interrupted_error, so has_temporary_error() can recognise any resulting retryable error. Log severity for the genuinely unexpected failure case reverts to WSREP_WARN. The duplicated mark_start_commit() guard in retry_event_group() and handle_rpl_parallel_thread() is factored into one mark_start_commit_unless_wsrep() helper. galera_parallel_slave_rollback.cnf drops the redundant binlog-format=row, already set by the included galera_2nodes_as_slave.cnf. Assisted-by: Claude:claude-4.6-sonnet
janlindstrom
force-pushed
the
knielsen_mdev41658_galera_mark_start_commit
branch
from
November 13, 2026 06:42
7b9250c to
1423c87
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.