-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: 11.4
Are you sure you want to change the base?
Conversation
…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.
There was a problem hiding this 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" || : |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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
…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.