Skip to content

Magento 2.4.9 with use_application_lock enabled and file based locking, experiences hanging indexers #40887

Description

@hostep

Preconditions and environment

  • Magento version: 2.4.9, also tested on latest 2.4-develop (8f16a0d)

Steps to reproduce

  1. Setup new Magento shop from scratch
  2. Confirm that bin/magento indexer:reindex works without issues
  3. Open the app/etc/env.php file and add this extra config:
    'indexer' => [
        'use_application_lock' => true
    ],
    'lock' => [
        'provider' => 'file',
        'config' => [
            'path' => 'var/locks'
        ]
    ],
  1. Run bin/magento indexer:reindex notice that it starts but never finishes

Expected result

Expect indexers to finish without issues when both file based locking is configured and use_application_lock is enabled

Actual result

Hanging indexers, never finishing, being stuck in a never-ending while loop

Additional information

Issue seems to have been introduced by these 4 lines in Magento 2.4.9, which was supposed to fix: #40102
See commit that introduced the problem (AC-15270)

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

No one assigned

    Labels

    Area: FrameworkComponent: IndexerIssue: 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.Reported on 2.4.9Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Ready for Development

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions