[Bug] DLedgerCleanSpaceService - the mappedFile re delete failed
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
centos8
RocketMQ version
5.3.0
JDK Version
openjdk version "17.0.11" 2024-04-16 LTS
Describe the Bug
Disk alarm, I went to check the logs and found that there is an issue with deleting historical data files that cannot be deleted
Steps to Reproduce
2024-11-08 09:37:53 INFO DLedgerCleanSpaceService - Clean space count=0 timeUp=false checkExpired=true forceClean=true enableForceClean=true diskFull=false storeBaseRatio=0.87 dataRatio=0.87 2024-11-08 09:37:53 WARN DLedgerCleanSpaceService - the mappedFile was destroyed once, but still alive, /app/rocketmq-5.3.0/data/broker-n2/store/dledger-n2/data/00000000000000000000 2024-11-08 09:37:53 WARN DLedgerCleanSpaceService - destroy mapped file[REF:0] /app/rocketmq-5.3.0/data/broker-n2/store/dledger-n2/data/00000000000000000000 Failed. cleanupOver: false 2024-11-08 09:37:53 WARN DLedgerCleanSpaceService - the mappedFile re delete failed, /app/rocketmq-5.3.0/data/broker-n2/store/dledger-n2/data/00000000000000000000 2024-11-08 09:37:53 WARN DLedgerCleanSpaceService - destroy mapped file[REF:0] /app/rocketmq-5.3.0/data/broker-n2/store/dledger-n2/data/00000000000000000000 Failed. cleanupOver: false 2024-11-08 09:37:53 INFO DLedgerCleanSpaceService - Clean space count=0 timeUp=false checkExpired=true forceClean=true enableForceClean=true diskFull=false storeBaseRatio=0.87 dataRatio=0.87 2024-11-08 09:37:53 WARN DLedgerCleanSpaceService - the mappedFile was destroyed once, but still alive, /app/rocketmq-5.3.0/data/broker-n2/store/dledger-n2/data/00000000000000000000 2024-11-08 09:37:53 WARN DLedgerCleanSpaceService - destroy mapped file[REF:0] /app/rocketmq-5.3.0/data/broker-n2/store/dledger-n2/data/00000000000000000000 Failed. cleanupOver: false 2024-11-08 09:37:53 WARN DLedgerCleanSpaceService - the mappedFile re delete failed, /app/rocketmq-5.3.0/data/broker-n2/store/dledger-n2/data/00000000000000000000
What Did You Expect to See?
Disk alarm
What Did You See Instead?
Disk alarm
Additional Context
No response
我在5.3.2版本中也发现了相同的问题,这个问题有解决吗?
建议使用jdk8,出问题应该是jdk9以上的版本,jdk9以上的版本jdk api反射调用权限受限制了