Skip to content

hanged unavailable file in deleteExpiredFileByTime #125

@yuz10

Description

@yuz10

the first file of dataFileList is not available, after deleteExpiredFileByTime.
image

image

the first time shutdown() is called, if refCount > 0, the file will not be deleted and mark available = false.
the second time shutdown() is called, it will be deleted. but if the disk is not full the second time, shutdown() is not called, and the file will be not available all the time.

see https://github.com/apache/rocketmq/blob/develop/store/src/main/java/org/apache/rocketmq/store/DefaultMessageStore.java#L1690

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