Closed
Description
Process Manager always exits successfully if the amount of functions passed to it(i.e. indexer dimensions) is lower than the MAGEINDEXER_THREADSCOUNT env variable. Can cause the Index to think it was rebuilt successfully when in fact it wasn't.
Preconditions (*)
- Magento 2.3.0 CE/EE or higher
- Magento 2.4-develop
- Several stores are active, but less than MAGEINDEXER_THREADS_COUNT(if MAGE_INDEXER_THREADSCOUNT=4, then the amount of stores active to reproduce this bug can be 3).
- (Optional) Elasticsearch is configured as search_engine - for ease of reproducing
Steps to reproduce (*)
- Run
MAGE*INDEXER_THREADS_COUNT=4 php bin/magento indexer:reindex catalogsearch*fulltext
- Kill Elasticsearch process to simulate an exception thrown
Expected result (*)
- Main process exits with an error as child process failed.
Actual result (*)
- Observe "Catalog Search index has been rebuilt successfully"
xx@xx:/var/www/magento2$ MAGE*INDEXER_THREADS_COUNT=4 php bin/magento indexer:reindex catalogsearch*fulltext
Catalog Search indexer process unknown error:
Indexer handler is not available: elasticsearch7
Catalog Search indexer process unknown error:
Indexer handler is not available: elasticsearch7
Catalog Search indexer process unknown error:
Indexer handler is not available: elasticsearch7
Catalog search index has been rebuilt successfully in ...
(Sidenote) The duplicated error messages are already fixed in scope of #30626
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- <x] 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
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedOnce P0 defects have been fixed, a defect having this priority is the next candidate for fixing.The issue has been reproduced on latest 2.4-develop branchAffects critical data or functionality and forces users to employ a workaround.
Type
Projects
Status
Done