Groups
Sign in
Groups
Jedis
Conversations
About
Send feedback
Help
Interrupting BLPOP
14 views
Skip to first unread message
Oscar Besga
unread,
Nov 19, 2021, 1:34:12 PM
11/19/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jedis
Hi all
When I do a BLPOP operation,
https://redis.io/commands/BLPOP
List<String> result = jedis.blpop(blpopName, "0");
I see that BLPOP waits indefinitely;
and even if I try a thread.interrupt() the operation contiues waiting.
Is there a way to interrupt a BLPOP operation ?
Thanks
Oscar Besga
unread,
Nov 19, 2021, 1:45:45 PM
11/19/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jedis
Also tried to cancel jedis connection
And look here
Looks like blpop is uninterruptible and best option is long polling
But if anyone knows betterr....
Oscar Besga
unread,
Nov 19, 2021, 1:46:07 PM
11/19/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jedis
Here
https://github.com/redis/jedis/issues/1356
(sorry)
Reply all
Reply to author
Forward
0 new messages