rocketmq-rust icon indicating copy to clipboard operation
rocketmq-rust copied to clipboard

[Refactor♻️] Rename TopicBatchExecutor to TopicBatchUpsertExecutor in Admin Core

Open mxsm opened this issue 2 weeks ago • 1 comments

Target Code

Start in rocketmq-tools/rocketmq-admin/rocketmq-admin-core/. The affected files are listed below.

  • src/client_adapter/topic/batch.rs contains the private trait, the AdminSession implementation, the bound in run_topic_batch_workflow, and the RecordingBatchExecutor test implementation.

Problems

TopicBatchExecutor is used only for batch upserts. It writes the topic configuration on each Broker and reconciles the order-topic configuration using the successful Brokers. Batch deletion already has its own TopicBatchDeleteExecutor in the same file.

Proposed Changes

  • [ ] Rename the trait and its production and test references to TopicBatchUpsertExecutor.
  • [ ] Keep upsert_topic_local, reconcile_order_config, and the separate delete workflow intact. The existing partial-success tests should still reconcile exactly the successful Brokers.

Run from the repository root.

cargo fmt -p rocketmq-admin-core -- --check
cargo test -p rocketmq-admin-core --features client-adapter --lib batch_workflow_

mxsm avatar Nov 14 '26 15:11 mxsm

I'd like to take this issue. I'll rename the private trait and its production/test references to TopicBatchUpsertExecutor, preserve the existing batch upsert and delete behavior, and run the format check and focused batch_workflow_ tests listed above.

lipeh1 avatar Nov 16 '26 05:11 lipeh1