nats.rs icon indicating copy to clipboard operation
nats.rs copied to clipboard

Fix jetstream PagedIterator infinite loop

Open kaizensparc opened this issue 2 years ago • 2 comments

On current nats server version (2.8) when a paged request is made to jetstream (e.g. to list the stream names), the page will never be empty, making the last page being repeated over and over and hanging if callingcollect() on it.

This fix implements the same fix as jsm.go(5a418c) manager.go +236 by stopping when detecting it's the last page.

kaizensparc avatar Aug 03 '22 13:08 kaizensparc

@kaizensparc are you still interested in this PR? I forgot about it for some time, sorry.

Jarema avatar Dec 27 '22 09:12 Jarema

Hello, Yes please :) No problem

kaizensparc avatar Dec 30 '22 22:12 kaizensparc