pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

[fix][broker]V1 topic creation should fail if namespace does not exist

Open poorbarcode opened this issue 2 months ago • 1 comments

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

poorbarcode avatar Oct 22 '25 04:10 poorbarcode

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

lhotari avatar Oct 31 '25 11:10 lhotari