You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "Ziy1-Tan (via GitHub)" <gi...@apache.org> on 2023/08/28 04:38:30 UTC

[GitHub] [rocketmq] Ziy1-Tan opened a new issue, #7275: [Bug] Lock acquisition exception occurs Under non read only RocksDB

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-unsubscribe@rocketmq.apache.org.apache.org

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


[GitHub] [rocketmq] RongtongJin closed issue #7275: [Bug] Lock acquisition exception occurs Under non read only RocksDB

Posted by "RongtongJin (via GitHub)" <gi...@apache.org>.
RongtongJin closed issue #7275: [Bug] Lock acquisition exception occurs Under non read only RocksDB
URL: https://github.com/apache/rocketmq/issues/7275


-- 
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-unsubscribe@rocketmq.apache.org

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