yuz10 commented on a change in pull request #3357:
URL: https://github.com/apache/rocketmq/pull/3357#discussion_r713720169
##########
File path:
store/src/main/java/org/apache/rocketmq/store/DefaultMessageStore.java
##########
@@ -1650,25 +1663,49 @@ private boolean isSpaceToDelete() {
cleanImmediately = false;
{
- double physicRatio =
UtilAll.getDiskPartitionSpaceUsedPercent(getStorePathPhysic());
- if (physicRatio > diskSpaceWarningLevelRatio) {
+ String[] storePaths;
+ String commitLogStorePath =
DefaultMessageStore.this.getMessageStoreConfig().getStorePathCommitLog();
+ if
(commitLogStorePath.contains(MessageStoreConfig.MULTI_PATH_SPLITTER)) {
+ storePaths =
commitLogStorePath.trim().split(MessageStoreConfig.MULTI_PATH_SPLITTER);
+ } else {
+ storePaths = new String[]{commitLogStorePath};
Review comment:
not necessary if branch, could use the same code with MULTI_PATH branch
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]