[Bug] Inconsistent behaviour for allowAutoTopicCreationType
- 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.
### Version
Run a standalone cluster in Docker
Pulsar: 3.1.0
### Minimal reproduce step
docker script environment
```
-e PULSAR_PREFIX_allowAutoTopicCreationType=partitioned
```
and none such env(thus default `non-partitioned`)
### What did you expect to see?
Both CreationType `should` auto create same RETRY/DLQ rule topic. `--RETRY`
ref:
https://github.com/apache/pulsar-site/pull/651
https://pulsar.apache.org/docs/3.1.x/concepts-messaging/#retry-letter-topic
### What did you see instead?
Write some code to consume topic, for example:
```
consumeFunc(topicname, subscriptionname, xxxHandler)
```
When using `non-partitioned` configuration server, it auto create topic as respected.
But when using `partitioned` config server, it auto create topic `subName-RETRY/DLQ` which may conflict when multi topics has same subName.
### Anything else?
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
Contributor guide
Research direction
Reproduce the behavior in a standalone Pulsar 3.1.0 Docker cluster using the consumeFunc entry point, first with PULSAR_PREFIX_allowAutoTopicCreationType=partitioned and then with the default non-partitioned setting. Compare the automatically created RETRY/DLQ topic names against the retry-letter-topic documentation and the expected --RETRY rule. Done means both creation types follow the same naming behavior without subscription-name conflicts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, 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