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-34856 : Galera Cluster upgrade from 11.0 to 11.1 fails, eventual… #443

Open
wants to merge 1 commit into
base: 11.4
Choose a base branch
from

Conversation

janlindstrom
Copy link

…ly leads to crash

This is regression from MDEV-18931 Rename Mariabackup's xtrabackup_* files to mariadb_backup_* commit b314f7b caused by fact that SST expects to find mariabackup_galera_info file but it does not exists if mariabackup backup is from older releases. Older releases have xtrabackup_galera_info file.

If mariabackup_galera_info file does not exists we move old xtrabackup_galera_info to mariabackup_galera_info file. This will allow rolling upgrade from older releases to new releases using new name.

Note that SST method rsync is not effected.

Manually tested by starting 2-node cluster with 10.11 binary, issued shutdown to second node and starting second node with 11.4 binary.

…ly leads to crash

This is regression from MDEV-18931 Rename Mariabackup's
xtrabackup_* files to mariadb_backup_* commit b314f7b
caused by fact that SST expects to find mariabackup_galera_info
file but it does not exists if mariabackup backup is from older
releases. Older releases have xtrabackup_galera_info file.

If mariabackup_galera_info file does not exists we move
old xtrabackup_galera_info to mariabackup_galera_info file.
This will allow rolling upgrade from older releases
to new releases using new name.

Note that SST method rsync is not effected.

Manually tested by starting 2-node cluster with 10.11 binary, issued shutdown
to second node and starting second node with 11.4 binary.
@janlindstrom janlindstrom self-assigned this Sep 5, 2024
Copy link

@sjaakola sjaakola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some clarification needed for the shell script part

[ -f "$MAGIC_FILE" ] && rm -f "$MAGIC_FILE" || :
[ -f "$DONOR_MAGIC_FILE" ] && rm -f "$DONOR_MAGIC_FILE" || :
[ -f "$MAGIC_FILE" ] && rm -rf "$MAGIC_FILE" || :
[ -f "$DONOR_MAGIC_FILE" ] && rm -rf "$DONOR_MAGIC_FILE" || :
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why change to use rm -rf here? target file is a simple file not a directory to be removed recursively

@@ -919,7 +928,7 @@ monitor_process()
done
}

[ -f "$MAGIC_FILE" ] && rm -f "$MAGIC_FILE"
[ -f "$MAGIC_FILE" ] && rm -rf "$MAGIC_FILE"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also here, using -r flag is not obvious choice

[ -f "$DATA/xtrabackup_binary" ] && rm -f "$DATA/xtrabackup_binary"
[ -f "$DATA/mariadb_backup_galera_info" ] && rm -f "$DATA/mariadb_backup_galera_info"
[ -f "$DATA/xtrabackup_binary" ] && rm -rf "$DATA/xtrabackup_binary"
[ -f "$DATA/mariadb_backup_galera_info" ] && rm -rf "$DATA/mariadb_backup_galera_info"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also here -rf flag is used

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

Successfully merging this pull request may close these issues.

2 participants