Uploaded image for project: 'Spring Data Redis'
  1. Spring Data Redis
  2. DATAREDIS-1138

ReactiveStreamCommands hangs with indefinite block

    XMLWordPrintable

    Details

      Description

      I wasn't able to find this in the redis documentation, but calling xRead with BLOCK 0 causes the block to last indefinitely. https://github.com/redis/redis-rb/issues/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

        Attachments

          Activity

            People

            Assignee:
            mp911de Mark Paluch
            Reporter:
            Q64 Dylan R
            Last updater:
            Mark Paluch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: