From 9176e05778035e76d9165a3b8e12f116b3ecacd6 Mon Sep 17 00:00:00 2001 From: qqeasonchen Date: Mon, 28 Oct 2019 17:35:37 +0800 Subject: [PATCH] unit test of isSpaceFull function --- .../rocketmq/store/DefaultMessageStoreCleanFilesTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store/src/test/java/org/apache/rocketmq/store/DefaultMessageStoreCleanFilesTest.java b/store/src/test/java/org/apache/rocketmq/store/DefaultMessageStoreCleanFilesTest.java index c0dc9b97..fa218619 100644 --- a/store/src/test/java/org/apache/rocketmq/store/DefaultMessageStoreCleanFilesTest.java +++ b/store/src/test/java/org/apache/rocketmq/store/DefaultMessageStoreCleanFilesTest.java @@ -70,7 +70,7 @@ public class DefaultMessageStoreCleanFilesTest { String deleteWhen = "04"; // the min value of diskMaxUsedSpaceRatio. int diskMaxUsedSpaceRatio = 1; - // used to ensure set diskfull flag + // used to set disk-full flag double diskSpaceCleanForciblyRatio = 0.01D; initMessageStore(deleteWhen, diskMaxUsedSpaceRatio, diskSpaceCleanForciblyRatio); // build and put 55 messages, exactly one message per CommitLog file. @@ -92,7 +92,7 @@ public class DefaultMessageStoreCleanFilesTest { String deleteWhen = "04"; // the min value of diskMaxUsedSpaceRatio. int diskMaxUsedSpaceRatio = 1; - //use to reset diskfull flag + //use to reset disk-full flag double diskSpaceCleanForciblyRatio = 0.999D; initMessageStore(deleteWhen, diskMaxUsedSpaceRatio, diskSpaceCleanForciblyRatio); //set disk full -- GitLab