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

Pxc 4607 #2018

Closed
wants to merge 6 commits into from
Closed

Pxc 4607 #2018

wants to merge 6 commits into from

Conversation

Tusamarco
Copy link

@Tusamarco Tusamarco commented Jan 31, 2025

Fix for PXC-4607 (synchronize clone plugin persistency)

@Tusamarco
Copy link
Author

@ParveezBaig @kamil-holubicki can you check it please ? this should fix the 4067

@Tusamarco Tusamarco changed the title Pxc 4067 Pxc 4607 Jan 31, 2025
@@ -358,12 +358,14 @@ setup_clone_plugin()
WSREP_OFF="" # joiner does not have replication enabled
fi
$MYSQL_ACLIENT -e "${WSREP_OFF}INSTALL PLUGIN CLONE SONAME 'mysql_clone.so';"
CLEANUP_CLONE_PLUGIN="yes"
if [ "$ROLE" == "donor" ]; then
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 consistent across the script how we do the comparison. Sometimes it is == and sometimes it it = (just 4 lines above).
= is posix compatible and should be used with single brackets [...]
== is bash only compatible and should be used with double brackets [[...]]

Would it be possible to have it consistent?

Copy link
Author

Choose a reason for hiding this comment

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

will review all in a different branch/pr

@@ -392,7 +394,7 @@ setup_clone_plugin()
[ "$SERVER_SSL_KEY" = "NULL" ] && SERVER_SSL_KEY=
[ "$SERVER_SSL_CA" = "NULL" ] && SERVER_SSL_CA=

if [ "$CLONE_SSL_CERT" = "NULL" -o "$CLONE_SSL_KEY" = "NULL" ]
if [ "$CLONE_SSL_CERT" == "NULL" -o "$CLONE_SSL_CERT" = "" ]
Copy link
Contributor

Choose a reason for hiding this comment

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

Mixture of single = and double == in one if

@kamil-holubicki kamil-holubicki mentioned this pull request Feb 3, 2025
…ction of the code:

DROP USER IF EXISTS 'mysql.pxc.sst.user'@'localhost'; $CLEANUP_CLONE_PLUGIN_SQL

Just moving the variable in different line fix the issue. this is quick and dirty fix but it works.
@Tusamarco Tusamarco closed this Feb 6, 2025
@Tusamarco Tusamarco deleted the PXC-4067 branch February 6, 2025 16:58
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