Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] rocksDBConfigToJson fail to print subscriptionGroups #8740

Closed
3 tasks done
yuz10 opened this issue Sep 24, 2024 · 0 comments · Fixed by #8738
Closed
3 tasks done

[Bug] rocksDBConfigToJson fail to print subscriptionGroups #8740

yuz10 opened this issue Sep 24, 2024 · 0 comments · Fixed by #8738

Comments

@yuz10
Copy link
Member

yuz10 commented Sep 24, 2024

Before Creating the Bug Report

  • I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

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

RongtongJin pushed a commit that referenced this issue Sep 25, 2024
* fix rocksDBConfigToJson command

* fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant