apache / rocketmq

Apache RocketMQ is a cloud native messaging and streaming platform, making it simple to build event-driven applications.
https://rocketmq.apache.org/
Apache License 2.0
21.26k stars 11.7k forks source link

[Bug] rocksDBConfigToJson fail to print subscriptionGroups #8740

Closed yuz10 closed 1 month ago

yuz10 commented 1 month ago

Before Creating the Bug Report

Runtime platform environment

ubuntu 24.04

RocketMQ version

5.3.0

JDK Version

1.8.0

Describe the Bug

rocksDBConfigToJson fail to print subscriptionGroups

Steps to Reproduce

  1. set broker config storeType=defaultRocksDB
  2. create a consumerGroup
  3. run command mqadmin rocksDBConfigToJson -p /tmp/config/ -t subscriptionGroups

What Did You Expect to See?

print subscriptionGroups json success

What Did You See Instead?

print subscriptionGroups json fail

java.lang.NullPointerException
        at org.apache.rocketmq.common.config.ConfigRocksDBStorage.iterator(ConfigRocksDBStorage.java:277)
        at org.apache.rocketmq.tools.command.metadata.RocksDBConfigToJsonCommand.execute(RocksDBConfigToJsonCommand.java:82)
        at org.apache.rocketmq.tools.command.MQAdminStartup.main0(MQAdminStartup.java:190)
        at org.apache.rocketmq.tools.command.MQAdminStartup.main(MQAdminStartup.java:139)

Additional Context

No response