pulsar
pulsar copied to clipboard
[fix][broker]V1 topic creation should fail if namespace does not exist
Motivation
V1 topic creation is allowed even if the namespace does not exist. After a topic creation, users will get the following concerns
- users will get a namespace not found error when calling
pulsar-admin topics list <v1 namespace> - users will get an empty list when calling
pulsar-admin topics list <v2 namespace>
Modifications
- fix the bug.
Documentation
- [ ]
doc - [ ]
doc-required - [x]
doc-not-needed - [ ]
doc-complete
Matching PR in forked repository
PR in forked repository: x
This test failure might be related to the changes:
Error: Failures:
Error: org.apache.pulsar.broker.admin.AdminApiSchemaTest.getTopicIntervalStateIncludeSchemaStoreLedger
[INFO] Run 1: PASS
Error: Run 2: AdminApiSchemaTest.getTopicIntervalStateIncludeSchemaStoreLedger:292 » NotFound V1 namespace [schematest/test] does not exist