-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Open
Labels
Area: CatalogArea: SearchComponent: CacheIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.A defect with this priority could have functionality issues which are not to expectations.Progress: ready for devReported on 2.4.6-p3Indicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch
Description
Preconditions and environment
- Magento version 2.4.6-p3
- Magento ElasticSearch7 / OpenSearch module
- Not working ElasticSearch (e.g. due to network failure)
Steps to reproduce
- Stop elasticsearch service
- Load category page, you will see "We can't find products matching the selection." message
- Recover elasticsearch (e.g. start elasticsearch / fix connectivity issue)
- Reload category page, it still shows the >>no products found<< message because the page is cached in FPC.
Expected result
In case of an elasticsearch exception, the page should not be cached in FPC so that once elasticsearch recovered, the products will get shown without manual need to flush the cache
Actual result
Category page is stored in FPC, regardless of elasticsearch availability
Additional information
Relevant code:
magento2/app/code/Magento/OpenSearch/SearchAdapter/Adapter.php
Lines 114 to 115 in 57cbaad
// return empty search result in case an exception is thrown from OpenSearch $rawResponse = self::$emptyRawResponse; magento2/app/code/Magento/Elasticsearch7/SearchAdapter/Adapter.php
Lines 117 to 118 in 57cbaad
// return empty search result in case an exception is thrown from Elasticsearch $rawResponse = self::$emptyRawResponse;
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Area: CatalogArea: SearchComponent: CacheIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.A defect with this priority could have functionality issues which are not to expectations.Progress: ready for devReported on 2.4.6-p3Indicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch