Skip to content

[Bug] DLedgerCleanSpaceService - the mappedFile re delete failed #8903

@XW512

Description

@XW512

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions