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

Indexer - Saving articles fails on a MySQL Galera replication cluster #42413

Closed
lscorcia opened this issue Nov 29, 2023 · 1 comment
Closed

Comments

@lscorcia
Copy link

Steps to reproduce the issue

Install MySQL8 as a Galera replication cluster;
Install Joomla v4-5. Make sure to create the tables #_finder_tokens_aggregate and #_finder_tokens as ENGINE=INNODB;
Create a new article and try to save it;

Expected result

Save operation should complete successfully.

Actual result

Joomla returns the following error:

Save failed with the following error: The table does not comply with the requirements by an external plugin.

System information (as much as possible)

MySQL 8 with Galera replication cluster;
Issue present both in Joomla v4 and v5.

Additional comments

The problem has already partially been analyzed in the context of issue #40368 and PR #40373 , but the merged fix is not enough to solve the issue. The ALTER TABLE instruction on Galera clusters does not fail if the table is empty (as it is on a new Joomla installation), it only fails if the table contains at least a record. As the ALTER TABLE succeeds, MySQL returns an error at the first insert into the table, i.e. when a new article is saved. The detection logic should be improved. I will provide a suitable PR.

@alikon
Copy link
Contributor

alikon commented Nov 29, 2023

closing as we have a pr #42414

@alikon alikon closed this as completed Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants