Skip to content

NHibernate Redis Caches goes into closed loop with multiple threads #124

Open
@EngSayed

Description

@EngSayed

I have multiple applications sharing the same backend code and after enabling SLC with Redis provider then application hangs in startup.
In the startup of each application it goes load thousands of data and tries to load/get from/into Redis. When I start 2 applications at the same moment then one manages to start while the second hangs and when I montiored Redis, I found that it keeps looping in getting a lot of keys over and over again.

This happens when Redis is empty and two applications would try to write the data into Redis. I have set cache.region_strategy.default.retry_times to 5 but no difference

Debug.log

Attached log file.

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