apache / apache/pulsar

websocket: Producers will fail the first time they send a message

Open
#13,568 3 comments 0 reactions 0 assignees View on GitHub
lifecycle/stale Stale type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

The first time I send a message every day the producer reports an error, if I try again it works fine, I'm using a websocket client.

This is the error message:

```
Array
(
[result] => send-error:8
[errorMsg] => org.apache.pulsar.client.api.PulsarClientException$TimeoutException: The producer standalone-122-14 can not send message to the topic persistent://public/default/my-topic2 within given timeout : createdAt 22479461 ns ago, firstSentAt 1302578400810485 ns ago, lastSentAt 20711937 ns ago, retryCount 1
[context] => 1 : 2021-12-30 10:42:18
[errorCode] => 0
[schemaVersion] => 0
)
```

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is named. Start by reproducing the first-send failure with the websocket client and inspect the producer timeout path and related logs. Done means the producer can send its first daily message without the reported timeout and subsequent sends continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Bug
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.