未验证 提交 ccc4b6db 编写于 作者: 张旭 提交者: GitHub

[ISSUE #2663] Fix isSpaceFull print file path not exist log When deployed on DLedger mode

Co-authored-by: Nzhangxu16 <zhangxu16@xiaomi.com>
上级 b94ef842
......@@ -1747,8 +1747,7 @@ public class DefaultMessageStore implements MessageStore {
this.manualDeleteFileSeveralTimes = manualDeleteFileSeveralTimes;
}
public boolean isSpaceFull() {
String storePathPhysic = DefaultMessageStore.this.getMessageStoreConfig().getStorePathCommitLog();
double physicRatio = UtilAll.getDiskPartitionSpaceUsedPercent(storePathPhysic);
double physicRatio = UtilAll.getDiskPartitionSpaceUsedPercent(getStorePathPhysic());
double ratio = DefaultMessageStore.this.getMessageStoreConfig().getDiskMaxUsedSpaceRatio() / 100.0;
if (physicRatio > ratio) {
DefaultMessageStore.log.info("physic disk of commitLog used: " + physicRatio);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册