Skip to content

Process Manager always exits successfully if the amount of functions(i.e. indexer dimensions) is lower than the MAGE_INDEXER_THREADS_COUNT env variable #30964

Closed
@pawel-siejba

Description

@pawel-siejba

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 (*)

  1. Magento 2.3.0 CE/EE or higher
  2. Magento 2.4-develop
  3. 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).
  4. (Optional) Elasticsearch is configured as search_engine - for ease of reproducing

Steps to reproduce (*)

  1. Run MAGE*INDEXER_THREADS_COUNT=4 php bin/magento indexer:reindex catalogsearch*fulltext
  2. Kill Elasticsearch process to simulate an exception thrown

Expected result (*)

  1. Main process exits with an error as child process failed.

Actual result (*)

  1. 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

Issue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S1Affects critical data or functionality and forces users to employ a workaround.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions