mirror of
https://github.com/apache/rocketmq.git
synced 2026-10-31 02:57:35 +08:00
[ISSUE #2663] Fix isSpaceFull print file path not exist log When deployed on DLedger mode
Co-authored-by: zhangxu16 <zhangxu16@xiaomi.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user