Skip to content

[BUG] Redis Distributed Lock acquisition timeout error log spam #592

@jgshowpad

Description

@jgshowpad

Describe the bug

During load testing the Redis distributed lock library appears to have some trouble, claiming it times out acquiring the lock, but the request has only been going for 12ms, the cached item (permission tokens) resolve instantly, and the requests go on to complete successfully. I'm wondering if it's some strange race condition in the locking code that causes an error log when the cache item is resolved too quickly.

Here is an example:
Image

I can't see any configuration to set this acquisition timeout either. But I believe that if it was really 12ms then it would be happening a lot more often.

Expected behavior

Don't expect to see this log so often.

Versions

I've encountered this issue on:

  • FusionCache version: 2.5.0
  • .NET version: 8
  • OS version: mcr.microsoft.com/dotnet/sdk:8.0 docker image
  • Redis: 7.0.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions