StackExchange.Redis icon indicating copy to clipboard operation
StackExchange.Redis copied to clipboard

Thread freezed on "ConnectionMultiplexer.GetDatabase().ListLeftPop(RedisKey)" after several empty retrieves

Open Ryujose opened this issue 8 years ago • 4 comments

Hello community.

I'm performing some tests to check the realiability and I've seen on one of my tests that after performing 35 petitions with "ConnectionMultiplexer.GetDatabase().ListLeftPop(RedisKey)" with empty results the thread was freezed in a console test with a for statement.

I don't know why this happened, for the moment I'm going to lua with ScriptEvaluate.

Note: The server was up and running.

Regards.

Ryujose avatar Aug 06 '18 18:08 Ryujose

It definitely wasn't ListLeftPopAsync? (I'm trying to think how such a scenario could happen...)

mgravell avatar Aug 06 '18 18:08 mgravell

@Ryujose can you please share the code that had this issue? Like Marc, my gut reaction is this seems like an async hang/deadlock somewhere...but we'd need to see some code to help!

NickCraver avatar Sep 05 '18 10:09 NickCraver

Hello @NickCraver. Sorry for the late update.

For what I remember we had done a simple implementation with this method.

The only important thing as observation that I can tell you is that it was used with a lot of hits, because data is coming from a communication protocol with a framework named QuickFix.

Maybe if the method is stressed it will happen the same?

Note: The app is up and running without problem with ScriptEvaluate.

Ryujose avatar Nov 14 '18 18:11 Ryujose

I didn't catch the follow-up message here - going to close this out to tidy since it was likely very implementation specific and...we don't have the specifics, combined with the fact you're up and running.

For anyone hitting something like this: please open an issue with your usage example and we'll take a look!

NickCraver avatar Mar 15 '20 17:03 NickCraver