Skip to content

Conversation

@Tusamarco
Copy link
Contributor

@Tusamarco Tusamarco commented Oct 6, 2025

…n_progress file

sst_in_Progress file containing indicating that server is executing an SST action was missed in case of clone.
Added functions to activate it as we do in XB
ticket https://perconadev.atlassian.net/browse/K8SPXC-1724

cpat=$(parse_cnf sst cpat '.*\.pem$\|.*init\.ok$\|.*galera\.cache$\|.*gvwstate\.dat$\|.*\.err$\|.*\.log$\|.*RPM_UPGRADE_MARKER$\|.*RPM_UPGRADE_HISTORY$\|.*component_keyring_.*\.cnf$\|.*mysqld.my$')
find $ib_home_dir $ib_log_dir $ib_undo_dir $WSREP_SST_OPT_DATA -mindepth 1 -regex $cpat -prune -o -exec rm -rfv {} 1>/dev/null \+

# Write the SST_PROGRESS_FILE again given we will have delete it with all the other files
Copy link
Contributor

Choose a reason for hiding this comment

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

It is not safe. It creates a short time window when SST_PROGRESS_FILE is not present, but SST actually goes on.

Let's do it the same as it is in the case of PXB-sst. Just do not delete SST_PROGRESS_FILE (include it in cpat filter):

cpat=$(parse_cnf sst cpat '.*\.pem$\|.*init\.ok$\|.*galera\.cache$\|.*sst_in_progress$\|.*gvwstate\.dat$\|.*\.err$\|.*\.log$\|.*RPM_UPGRADE_MARKER$\|.*RPM_UPGRADE_HISTORY$\|.*component_keyring_.*\.cnf$\|.*mysqld.my$')

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