Skip to content

MDEV-13718 mysqltest crashes upon --sync_slave_with_master without active connection - #5934

Open
Swayam-code wants to merge 1 commit into
MariaDB:11.4from
Swayam-code:codex/mdev-13718-closed-connection
Open

Swayam-code wants to merge 1 commit into
MariaDB:11.4from
Swayam-code:codex/mdev-13718-closed-connection

Conversation

@Swayam-code

Copy link
Copy Markdown

save_master_pos and sync_slave_with_master dereference a null client handle after disconnecting the current connection. Report error 2006 and stop before selecting a slave.

The regression passes in all three binlog formats on Windows (11.4 Debug client, 13.2 Debug server). main.mysqltest hits the same shell-quoting failure before and after the fix.

MDEV-13718

…tive connection

Report the existing no-active-connection error before querying master
status. Stop sync_slave_with_master before it selects a slave after a
handled error.

Cover disconnected commands, connection preservation and successful
replication before and after the error.

Assisted-by: Codex:GPT-6
@gkodinov gkodinov added the External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements. label Oct 21, 2026
@gkodinov gkodinov self-assigned this Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements.

Development

Successfully merging this pull request may close these issues.

2 participants