rocketmq-rust
rocketmq-rust copied to clipboard
[Refactor♻️] Rename TopicBatchExecutor to TopicBatchUpsertExecutor in Admin Core
Target Code
Start in rocketmq-tools/rocketmq-admin/rocketmq-admin-core/. The affected files are listed below.
src/client_adapter/topic/batch.rscontains the private trait, theAdminSessionimplementation, the bound inrun_topic_batch_workflow, and theRecordingBatchExecutortest 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_
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.