Skip to content

Can not lock, Someone else has lock and lockId is.... #172

Open
@priyank89patel

Description

@priyank89patel

Hello team,
We have a ASP.NET web application that uses redis for session state management. From my dev machine I'm getting lock related issues. The application works for sometime and then starts failing due to the same reasons.

I think my application is creating a lock on a key and then for some reason the lock is not getting released because of which other requests are failing because the previous lock was not released. The application starts working again when the lock expires and the same issue happens after sometime.

Please see below errors from the log:

[2022-12-09 02:07:33.364][Info]GetItemExclusive => Session Id: xxx, Session provider object: xxx.
2022-12-08 20:07:33,409 [21] INFO  (null):(null) (null) - RedisSessionState: [2022-12-09 02:07:33.409][Info]GetItemFromSessionStore => Session Id: xxx, Session provider object: xxx => Can not lock, Someone else has lock and lockId is xxx
2022-12-08 20:07:33,912 [110] INFO  (null):(null) (null) - RedisSessionState: [2022-12-09 02:07:33.912][Info]GetItemExclusive => Session Id: xxx, Session provider object: xxx.
2022-12-08 20:07:33,961 [110] INFO  (null):(null) (null) - RedisSessionState: [2022-12-09 02:07:33.961][Info]GetItemFromSessionStore => Session Id: xxx, Session provider object: xxx => Can not lock, Someone else has lock and lockId is xxx
2022-12-08 20:07:34,474 [105] INFO  (null):(null) (null) - RedisSessionState: [2022-12-09 02:07:34.474][Info]GetItemExclusive => Session Id: xxx, Session provider object: xxx.
2022-12-08 20:07:34,520 [105] INFO  (null):(null) (null) - RedisSessionState: [2022-12-09 02:07:34.520][Info]GetItemFromSessionStore => Session Id: xxx, Session provider object: xxx => Can not lock, Someone else has lock and lockId is xxx
2022-12-08 20:07:35,035 [30] INFO  (null):(null) (null) - RedisSessionState: [2022-12-09 02:07:35.035][Info]GetItemExclusive => Session Id: xxx, Session provider object: xxx.
2022-12-08 20:07:35,081 [30] INFO  (null):(null) (null) - RedisSessionState: [2022-12-09 02:07:35.081][Info]GetItemFromSessionStore => Session Id: xxx, Session provider object: xxx => Can not lock, Someone else has lock and lockId is xxx
2022-12-08 20:07:35,582 [101] INFO  (null):(null) (null) - RedisSessionState: [2022-12-09 02:07:35.582][Info]GetItemExclusive => Session Id: xxx, Session provider object: xxx.
2022-12-08 20:07:35,633 [101] INFO  (null):(null) (null) - RedisSessionState: [2022-12-09 02:07:35.633][Info]GetItemFromSessionStore => Session Id: xxx, Session provider object: xxx => Can not lock, Someone else has lock and lockId is xxx
2022-12-08 20:07:36,143 [105] INFO  (null):(null) (null) - RedisSessionState: [2022-12-09 02:07:36.143][Info]GetItemExclusive => Session Id: xxx, Session provider object: xxx.
2022-12-08 20:07:36,180 [105] INFO  (null):(null) (null) - RedisSessionState: [2022-12-09 02:07:36.180][Info]GetItemFromSessionStore => Session Id: xxx, Session provider object: xxx => Can not lock, Someone else has lock and lockId is xxx

Can someone please help me understand what is causing this issue?

Thank you

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