Skip to content

[improve][test]Add test: test/testTopicPartitionCannotBeCreatedAfterTopicDeleted#26038

Merged
merlimat merged 2 commits into
apache:masterfrom
poorbarcode:test/testTopicPartitionCannotBeCreatedAfterTopicDeleted
Jun 18, 2026
Merged

[improve][test]Add test: test/testTopicPartitionCannotBeCreatedAfterTopicDeleted#26038
merlimat merged 2 commits into
apache:masterfrom
poorbarcode:test/testTopicPartitionCannotBeCreatedAfterTopicDeleted

Conversation

@poorbarcode

Copy link
Copy Markdown
Contributor

Motivation

#24118 added a check that prevents partition creation if there is no partitioned topic metadata.

Modifications

Adds a new test to cover more cases: producer reconnects will not create up the partition once a partitioned topic was deleted.

  • Create a partitioned topic
  • Create a producer which is connected to the newly created topic.
  • A broken network occurs
  • Since the connection was closed, the broker has no producer registered anymore
    • The partitioned topic can be deleted before the producer reconnects.
  • The producer tries to reconnect.
    • Verify: the reconnection will get an error because the partitioned topic has been deleted

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

@poorbarcode poorbarcode added this to the 5.0.0-M1 milestone Jun 16, 2026
@poorbarcode poorbarcode self-assigned this Jun 16, 2026
@merlimat merlimat merged commit 8eaf551 into apache:master Jun 18, 2026
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants