Heartbeat for Fetch doesn't seem to be working? #1735
Replies: 2 comments 1 reply
-
@piotrpio will take a look, but please do not use such a short heartbeat values - it can put unnecessary strain on the server, and additionaly - it's really unreliable value in real-world scenarios with variadic RTT. |
Beta Was this translation helpful? Give feedback.
-
As @Jarema, this is not a realistic or suggested heartbeat value, but you should be receiving errors. Can you provide your usage or an example of when this is happening? We have tests for missing heartbeats using As to how it works, missing heartbeats will be triggered if there are no messages and the client does not receive idle heartbeat message from the server for more than 2x specified value. This could happen e.g. if the consumer does not exist or there is a network issue. Are you sure the server is not sending the idle heartbeat messages? |
Beta Was this translation helpful? Give feedback.
-
Hi all, having some issues with the
jetstream.Consumer#Fetch
for[email protected]
- our understanding is that if you specify a timeout of, say, 30 seconds, but a heartbeat period of 200 milliseconds, and you fail to receive 3 consecutive heartbeats at any point, the fetch call should returnErrNoHeartbeat
. Is that correct? We are receiving no error under these conditions...Beta Was this translation helpful? Give feedback.
All reactions