apache / apache/pulsar-client-node
Fail on disconnect
- Dominant language
- C++
- Stars
- 164
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
Is there/should there be a way to fail a subscription when disconnected from the server?
I would normally crash the process when this happens..
However
```
const msg = await consumer.receive();
```
just seems to wait forever with debug output indicating retrying but operationTimeoutCeconds having no effect.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the consumer.receive() call shown in the issue and trace how disconnect retries and operationTimeoutCeconds are handled. Determine the expected behavior when the server disconnects, then add coverage demonstrating that a subscription fails rather than waiting indefinitely.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100