rocketmq5.3.4 Window启动broker日志有报错
Before Creating the Bug Report
-
[x] I found a bug, not just asking a question, which should be created in GitHub Discussions.
-
[x] I have searched the GitHub Issues and GitHub 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
OS: Windows 11
RocketMQ version
5.3.4
JDK Version
1.8
Describe the Bug
错误日志:
ERROR TransactionFlushService - Failed to persist
java.nio.file.AccessDeniedException: D:\rocketmq\store\config
已检证:D:\rocketmq\store\config有完全控制权限,此目录下有consumerFilter.json、delayOffset.json等文件
Steps to Reproduce
mqbroker -n 0.0.0.0:9876 -c %ROCKETMQ_HOME%/conf/broker.conf
What Did You Expect to See?
不报错
What Did You See Instead?
2025-12-05 11:05:46 ERROR TransactionFlushService - Failed to persist java.nio.file.AccessDeniedException: D:\rocketmq\store\config at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108) at java.base/sun.nio.fs.WindowsFileSystemProvider.newFileChannel(WindowsFileSystemProvider.java:121) at java.base/java.nio.channels.FileChannel.open(FileChannel.java:298) at java.base/java.nio.channels.FileChannel.open(FileChannel.java:357) at org.apache.rocketmq.common.MixAll.fsyncDirectory(MixAll.java:251) at org.apache.rocketmq.store.timer.TimerMetrics.persist(TimerMetrics.java:238) at org.apache.rocketmq.store.timer.TimerMessageStore$TimerFlushService.flush(TimerMessageStore.java:1884) at org.apache.rocketmq.store.timer.TimerMessageStore$TimerFlushService.run(TimerMessageStore.java:1839) at java.base/java.lang.Thread.run(Thread.java:840)
Additional Context
No response
This is likely a limitation of the Windows API; it is recommended to use Linux to run the broker.