GitHub user orchidFang edited a discussion: updateSubGroup command set
retryPolicy raise JSON Exception
使用updateSubGroup设置重试策略时,经检查json配置没有问题,但报json解析错误。
COMMAND:
./mqadmin updateSubGroup -n localhost:9876 -g system -p
{"type":"EXPONENTIAL","exponentialRetryPolicy":{"initial":5000,"max":7200000,"multiplier":2}}
ERROR MSG:
org.apache.rocketmq.tools.command.SubCommandException: UpdateSubGroupSubCommand
command failed
at
org.apache.rocketmq.tools.command.consumer.UpdateSubGroupSubCommand.execute(UpdateSubGroupSubCommand.java:211)
at
org.apache.rocketmq.tools.command.MQAdminStartup.main0(MQAdminStartup.java:160)
at
org.apache.rocketmq.tools.command.MQAdminStartup.main(MQAdminStartup.java:110)
Caused by: com.alibaba.fastjson.JSONException: error parse true
at com.alibaba.fastjson.parser.JSONLexerBase.scanTrue(JSONLexerBase.java:4642)
at com.alibaba.fastjson.parser.JSONLexerBase.nextToken(JSONLexerBase.java:148)
at com.alibaba.fastjson.parser.DefaultJSONParser.(DefaultJSONParser.java:170)
at com.alibaba.fastjson.parser.DefaultJSONParser.(DefaultJSONParser.java:141)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:378)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:298)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:588)
at
org.apache.rocketmq.tools.command.consumer.UpdateSubGroupSubCommand.execute(UpdateSubGroupSubCommand.java:159)
... 2 more
<img width="961" alt="15a59059e01c8990dc10cb917d8e9d9"
src="https://user-images.githubusercontent.com/6478487/226515130-30725aeb-1375-40e0-b674-1668ded7089b.png">
GitHub link: https://github.com/apache/rocketmq/discussions/6425
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]