ACSD-56226: READ queries return outdated data with synchronous_replication enabled
The ACSD-56226 patch fixes the issue where READ queries return outdated data when the synchronous_replication flag is enabled for slave connection on Cloud. This patch is available when the Quality Patches Tool (QPT) 1.1.69 is installed. The patch ID is ACSD-56226. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.7.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.6-p2
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.6 - 2.4.6-p11
magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
READ queries return outdated data when the synchronous_replication flag is enabled. This causes the slave connection to be disabled, leading to database overload.
Steps to reproduce:
-
Set
MYSQL_USE_SLAVE_CONNECTIONto true in the environment variables on Adobe Commerce on cloud infrastructure. -
Add the following configuration to
.magento.env.yamlto setsynchronous_replicationto false:code language-text DATABASE_CONFIGURATION: _merge: true slave_connection: default: synchronous_replication: false -
Redeploy and perform frontend actions such as login, add to cart, or place an order.
Expected results:
Slave connection remains enabled when synchronous_replication is set to false.
Actual results:
Slave connection is disabled when synchronous_replication is set to false, causing database overload.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.