Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Lock] Lock::acquire will always return false when using RedisStore #59387

Copy link
Copy link
@PatNowak

Description

@PatNowak
Issue body actions

Symfony version(s) affected

7.2, also tested 7.3.x-dev 9169931

Description

We're using Valkey 7.2.4 (more less Redis fork) and it works perfectly fine on Sf 6.4.
On 7.2 (tested dev branches and main) we got issue with Lock->acquire. It uses under the hood RedisStore->save and the $this->evaluate (https://github.com/symfony/symfony/blob/7.3/src/Symfony/Component/Lock/Store/RedisStore.php#L86) .

The redis tab output:
Zrzut ekranu z 2025-01-07 09-23-57

How to reproduce

I believe the difference is between eval and evalSha, so if you please try to create lock and acquire it using Redis.
We're actually using Valkey (valkey/valkey:8 docker image, https://hub.docker.com/r/valkey/valkey/).

Possible Solution

No response

Additional Context

Might be similar to #58660

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.