Skip to content

ReactiveStreamCommands hangs with indefinite block [DATAREDIS-1138] #1708

Closed
@spring-projects-issues

Description

@spring-projects-issues

Dylan R opened DATAREDIS-1138 and commented

I wasn't able to find this in the redis documentation, but calling xRead with BLOCK 0 causes the block to last indefinitely. redis/redis-rb#836

 

Currently a dedicated connection is used only when BLOCK is > 0, but to handle this indefinite block case, a dedicated connection should be used when BLOCK >= 0. Currently passing a BLOCK of 0 to the commands causes the primary connection to be indefinitely blocked.

https://github.com/spring-projects/spring-data-redis/blob/master/src/main/java/org/springframework/data/redis/connection/lettuce/LettuceReactiveStreamCommands.java#L325


Referenced from: pull request #528

Backported to: 2.2.8 (Moore SR8)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions