apache / apache/pulsar-client-node

Fail on disconnect

Open
#75 1 comment 0 reactions 0 assignees View on GitHub
triage/week-12
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.