Skip to content

[Test🧪] Add replacement and cleanup tests for TopicQueueMappingInfoTable #7619

Description

@mxsm

Prerequisites

  • I have searched existing test issues

Test Scope

Module: static-topic queue mapping table
File: rocketmq-namesrv/src/route/tables/topic_queue_mapping_table.rs
Coverage: extend table tests around replace, remove, and cleanup semantics.

Test Cases

  • Re-registering the same topic and broker returns the previous mapping and stores the new mapping.
  • remove_broker returns None for an unknown topic and for an unknown broker.
  • Removing the last broker leaves an empty topic until cleanup_empty_topics removes it.
  • remove_topic returns all previous broker mappings for that topic.
  • Validate with cargo test -p rocketmq-namesrv topic_queue_mapping_table.

Willing to contribute?

  • I can submit a PR for this

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions