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

Support for Percona XtraDB Cluster with Strict Mode Enabled #1380

Closed
philipkozeny opened this issue Aug 30, 2023 · 4 comments
Closed

Support for Percona XtraDB Cluster with Strict Mode Enabled #1380

philipkozeny opened this issue Aug 30, 2023 · 4 comments

Comments

@philipkozeny
Copy link

Percona XtraDB Cluster is a widely-used MySQL Galera Cluster solution, recommended for production environments. When operating in its recommended strict mode for production use, the cluster mandates that all tables must have an explicit primary key.

While attempting to run Telescope on a Percona XtraDB Cluster with strict mode enabled, the following error occurs:

SQLSTATE[HY000]: General error: 1105 Percona-XtraDB-Cluster prohibits use of DML command on a table (citizen.telescope_entries_tags) without an explicit primary key with pxc_strict_mode = ENFORCING or MASTER (Connection: mysql, SQL: insert into `telescope_entries_tags` (`entry_uuid`, `tag`) values (9a031faf-ad80-454a-9535-4222cc3658e8, slow))
@github-actions
Copy link

Thank you for reporting this issue!

As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.

If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.

Thank you!

@driesvints
Copy link
Member

I'm sorry but I don't think we can account for this edge case. Since we only have one report so far and the ticket has been open for a while I'm going to close this one.

@zoispag
Copy link
Contributor

zoispag commented Nov 13, 2023

Hi @driesvints. I like to add to this issue; I have been considering an HA MySQL solution, and both Percona XtraDB (Galera) as well as the Oracle MySQL Operator (Group replication) use replication, which requires primary keys to exist on all tables. Currently this limits HA MySQL deployments. Therefore, I don’t think it’s an unreasonable request, nor an edge case.

Can we reopen this issue so it can addressed?

@driesvints
Copy link
Member

I'm sorry but no. We are open to PRs however.

taylorotwell pushed a commit that referenced this issue Jan 22, 2024
As suggested in #1380, this PR adds Primary keys to the `telescope_entries_tags` and the `telescope_monitoring` tables, to allow HA MySQL deployments.

Co-authored-by: Zois Pagoulatos <[email protected]>
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

4 participants