apache / apache/pulsar

[Bug] When the topic name is four-paragraph and the namespace does not exist, the topic can also be produced and consumed normally

Open
#23,696 2 comments 0 reactions 0 assignees View on GitHub
type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.

### Read release policy

- [X] I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

### Version

pulsar:4.0.1
java-sdk:2.9.2

### Minimal reproduce step

Producer producer = myClient.newProducer().
topic("persistent://wzjtest-tenant/cluster/test-ns/topic").create();

### What did you expect to see?

Not found: Namespace not found

### What did you see instead?

Can produce and consume normally

### Anything else?

_No response_

### Are you willing to submit a PR?

- [X] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start by running the Java reproduction against Pulsar 4.0.1 with the four-paragraph topic name and nonexistent namespace. Compare the broker's behavior with the expected “Namespace not found” result; done means producing and consuming are rejected when the namespace does not exist.

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
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.