apache / apache/pulsar-client-go

[BUG] pulsar.(*producer).Send() panic when topic is deleted

Open
#1,129 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
745
Forks
389
Avg merge
3d 20h
Merged PRs (30d)
3

Description

#### Expected behavior

When topic is deleted, should return `Topic Not Found` error instead of panic.

#### Actual behavior

![image](https://github.com/apache/pulsar-client-go/assets/58430956/8178d9dd-4508-4243-84ad-9bb261b1d910)

#### Steps to reproduce

1. create topic;
2. create producer and send messages in loop;
3. force delete topic while producer is connected;
4. wait for a period of time, you can see the panic;

#### System configuration
**Pulsar version**: 0.11.1

Contributor guide

Open the contributing guide

Research direction

Start with pulsar.(*producer).Send() and reproduce the reported sequence: create a topic, send in a loop, force-delete the topic, and continue sending. Inspect the failure after deletion and use the Pulsar version noted in the issue as context. Done means Send() returns a "Topic Not Found" error instead of panicking.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend-api-design, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.