The GitHub Actions job "Build and Run Tests by Maven" on 
rocketmq.git/codex/static-topic-map-file has failed.
Run started by GitHub user iloveeyjafjalla (triggered by iloveeyjafjalla).

Head commit for run:
dc10f0dd356f346412e7f67590adbbb49c7c2278 / iloveeyjafjalla <[email protected]>
[ISSUE #11381] fix(tools): apply the static-topic map file instead of ignoring 
it

Both static-topic commands registered the map-file option as "mf" and then read
the key "f", which is registered nowhere: the documented
`-t T -b brokerA -qn 8 -mf plan.json` invocation never read the file and took 
the
recompute path, rewriting the mapping computed from the cluster's state instead 
of
applying the caller's plan (and `getOptionValue('f')` inside executeFromFile 
would
have NPE'd). Reaching the file mode was blocked twice more, because the parser
demanded -b|-c (and -qn for updateStaticTopic) although the file carries those, 
so
`-t T -mf plan.json` printed the help and exited 1. updateStaticTopic also 
parsed
-fr and then passed a literal false to updateTopicConfigMappingAll.

Read the registered key, stop requiring -b|-c|-qn for the from-file mode (both
recompute paths validate them themselves and print the help), and pass the 
parsed
force through. The file reading moves into a package-private
loadMappingDetail(CommandLine) so it is directly testable.

Report URL: https://github.com/apache/rocketmq/actions/runs/38273026567

With regards,
GitHub Actions via GitBox

Reply via email to