Ziy1-Tan opened a new issue, #7275:
URL: https://github.com/apache/rocketmq/issues/7275

   ### Before Creating the Bug Report
   
   - [X] I found a bug, not just asking a question, which should be created in 
[GitHub Discussions](https://github.com/apache/rocketmq/discussions).
   
   - [X] I have searched the [GitHub 
Issues](https://github.com/apache/rocketmq/issues) and [GitHub 
Discussions](https://github.com/apache/rocketmq/discussions)  of this 
repository and believe that this is not a duplicate.
   
   - [X] I have confirmed that this bug belongs to the current repository, not 
other repositories of RocketMQ.
   
   
   ### Runtime platform environment
   
   macos m2
   
   ### RocketMQ version
   
   develop 5.1.4
   
   ### JDK Version
   
   1.8
   
   ### Describe the Bug
   
   When rocketmq has started, call command `rocksDBConfigToJson` will failed:
   ```java
   2023-08-28 10:09:09 ERROR main - postLoad Failed. 
/disk2/rocketmq_store/config/topics
   org.rocksdb.RocksDBException: While lock file: 
/disk2/rocketmq_store/config/topics/LOCK: Resource temporarily unavailable
           at org.rocksdb.RocksDB.open(Native Method)
           at org.rocksdb.RocksDB.open(RocksDB.java:304)
           at 
org.apache.rocketmq.common.config.AbstractRocksDBStorage.open(AbstractRocksDBStorage.java:272)
           at 
org.apache.rocketmq.common.config.ConfigRocksDBStorage.postLoad(ConfigRocksDBStorage.java:114)
           at 
org.apache.rocketmq.common.config.AbstractRocksDBStorage.start(AbstractRocksDBStorage.java:288)
           at 
org.apache.rocketmq.common.config.RocksDBConfigManager.load(RocksDBConfigManager.java:44)
           at 
org.apache.rocketmq.tools.command.metadata.RocksDBConfigToJsonCommand.execute(RocksDBConfigToJsonCommand.java:79)
           at 
org.apache.rocketmq.tools.command.MQAdminStartup.main0(MQAdminStartup.java:165)
           at 
org.apache.rocketmq.tools.command.MQAdminStartup.main(MQAdminStartup.java:115)
           at 
com.alibaba.rocketmq.commercial.tools.ToolsStartup.main(ToolsStartup.java:38)
   
   ### Steps to Reproduce
   
   1. Start Rocketmq and enable RocksDB storage
   2. Execute `mqadmin rocksDBConfigToJson -p xxx -t topics` 
   
   ### What Did You Expect to See?
   
   output topic json table
   
   ### What Did You See Instead?
   
   RocksDB load error
   
   ### Additional Context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to