-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Statement violates GTID consistency #15209
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
Comments
I am using the same setup and experience this issue during a
The |
Hi @raybog , thank you for your report. Please follow these guidelines for proper tracking of your issue. You can report Commerce-related issues in one of two ways: GitHub is intended for Magento Open Source users to report on issues related to Open Source only. There are no account management services associated with GitHub. |
Why was this closed!!. This is still broken in 2.2 and 2.3. Magento should be able to run on a MySQL installation with binary logging enabled. |
@gwharton Because this is Commerce-related issues |
What makes you think this is commerce related. The OP does not mention it and i get the bug in open source. |
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
@gwharton but if we accept this we will have 2 duplicate issues ? |
True, but this issue is failing adding a category and the other is failed reindexing. We are assuming the root cause is the same for both (admitedly seems like it is but we dont know that for sure yet do we?). |
@engcom-backlog-nazar Thank you for verifying the issue. Based on the provided information internal tickets |
hello @engcom-backlog-nazar |
Hello! Is this something that Magento team is working on for next versions or it is on backlog at this moment? Thanks! |
This probably most seriously impacts Google Cloud SQL users; there is a notable event with the EOL of first-generation instances which did not utilize binary logging for HA replication on March 5. See #12124 (comment) for a more complete write-up. @magento-engcom-team, per #15209 (comment) above, is binary logging/GTID transaction compatibility on the roadmap or is this firmly backlogged/needing community work? |
@bradjones1 not really only for Google Cloud, all managed databases are following this. Azure will also block non GTIDs instances on a close future. We're using Google Cloud, moved to Azure to avoid this and now we're working to try to fix this, as we don't want to have a self managed database inside our business. |
@ebanolopes Indeed this is not just a Google Cloud issue, however it is pertinent in so far as they are sunsetting related functionality as per above. I do not have any insight into Magento development priorities; to be honest, I am not a real fan of the product and we are moving away from M2. Sorry I don't have any information for you there. I suspect this issue will either only move forward if enterprise customers ask for it, or there is a community contribution. |
How can this still be a problem in 2.4?! |
❌ Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.magento.com/browse/AC-804 |
According to https://cloud.google.com/sql/docs/features#differences, MySQL for Cloud SQL 8.0 does support CREATE TEMPORARY TABLE statement, and Magento 2.4 does support MySQL 8. So, this is not an issue for Magento 2.4 installations, that does support MySQL 8. I created PR that adds this info to the docs: magento/devdocs#9111 |
Hi @ihor-sviziev. Thank you for working on this issue.
|
We are using the Google Cloud SQL (MySQL 2e gen. 5.7) server where we encountered the following problem, when trying to add subcategory.
This can be "solved" by setting Binary logging to disable at GCP but it is not a good practice.
Preconditions
Clean installation of Magento 2.2.3 connected to Google Cloud SQL (MySQL 2e gen. 5.7) with Binary logging enabled.
Steps to reproduce
Add subcategory via Admin Panel
Expected result
Category should be added
Actual result
General error: 1787 Statement violates GTID consistency: CREATE TEMPORARY TABLE and DROP TEMPORARY TABLE can only be executed outside transactional context. These statements are also not allowed in a function or trigger because functions and triggers are also considered to be multi-statement transactions.
The text was updated successfully, but these errors were encountered: