stubStoreRequestHashUsage sometimes produces an error: RuntimeException: Could not acquire the lock to store the last requests hashes

Created on 13 March 2025, about 1 month ago

Problem/Motivation

When we have parallel requests to Drupal, sometimes function HttpClientFactoryMock::stubStoreRequestHashUsage() produces an error:

Error      RuntimeException: Could not acquire the lock to store the last requests hashes. in Drupal\test_helpers_http_client_mock\HttpClientFactoryMock->stubStoreRequestHashUsage() (line 197

Steps to reproduce

Run several parallel requests to Drupal backend, which executes multiple outgoing HTTP requests.

Proposed resolution

Debug and rework the logic of the function HttpClientFactoryMock::stubStoreRequestHashUsage().

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.5

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024