Preconditions and environment
- Magento version: 2.4.9, also tested on latest
2.4-develop (8f16a0d)
Steps to reproduce
- Setup new Magento shop from scratch
- Confirm that
bin/magento indexer:reindex works without issues
- Open the
app/etc/env.php file and add this extra config:
'indexer' => [
'use_application_lock' => true
],
'lock' => [
'provider' => 'file',
'config' => [
'path' => 'var/locks'
]
],
- 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
Preconditions and environment
2.4-develop(8f16a0d)Steps to reproduce
bin/magento indexer:reindexworks without issuesapp/etc/env.phpfile and add this extra config:bin/magento indexer:reindexnotice that it starts but never finishesExpected result
Expect indexers to finish without issues when both file based locking is configured and
use_application_lockis enabledActual 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