Closed roeschter closed 2 months ago
Can you please provide some example code or a unit test to demonstrate this?
Also, can you look at "simplification", i.e. using the ConsumerContext to consumer messages. It's very robust and probably does what you need. There are examples here: https://github.com/nats-io/nats.java/tree/main/src/examples/java/io/nats/examples/jetstream/simple
+ConsumerContext does not have this issue - recovers after timeout -Seems ConsumerContext suffers from the same issue:
To reproduce:
Please check my Playground - https://github.com/roeschter/natsPlayground - you should have seen an invite See the /reproducer package
Correction: ConsumerContext self recovers after timeout - The default is 30s, I did not wait that long.
Issue, when the reader receivers fewer messages than expected in a pull, it will eventually stall. Most easily reproduced with a server restart/reconnect.
Not sure whether we consider this a bug. Maybe make it a feature request.