This is an automated email from the ASF dual-hosted git repository.
zhaijia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
The following commit(s) were added to refs/heads/master by this push:
new 0ccbc0e BOOKKEEPER-1104: Fix
testWithDiskFullAndAbilityToCreateNewIndexFile
0ccbc0e is described below
commit 0ccbc0e9c3e6a82d5e44b8347cc6567e043f253f
Author: Samuel Just <[email protected]>
AuthorDate: Fri Jul 28 12:39:03 2017 +0800
BOOKKEEPER-1104: Fix testWithDiskFullAndAbilityToCreateNewIndexFile
The usage threshhold was chosen to be very close to the actual disk
usage at test time. This made the test unnecessarily fragile in the
case that there other things concurrently using the disk. Since we
aren't really testing that here, simply set the threshhold to be really
low.
Signed-off-by: Samuel Just <sjustsalesforce.com>
Author: Samuel Just <[email protected]>
Reviewers: Jia Zhai <None>, Matteo Merli <None>
This closes #310 from athanatos/forupstream/BOOKKEEPER-1104
---
.../java/org/apache/bookkeeper/bookie/BookieInitializationTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/bookkeeper-server/src/test/java/org/apache/bookkeeper/bookie/BookieInitializationTest.java
b/bookkeeper-server/src/test/java/org/apache/bookkeeper/bookie/BookieInitializationTest.java
index 0cbebd4..89404b6 100644
---
a/bookkeeper-server/src/test/java/org/apache/bookkeeper/bookie/BookieInitializationTest.java
+++
b/bookkeeper-server/src/test/java/org/apache/bookkeeper/bookie/BookieInitializationTest.java
@@ -502,7 +502,7 @@ public class BookieInitializationTest extends
BookKeeperClusterTestCase {
long usableSpace = tmpDir.getUsableSpace();
long totalSpace = tmpDir.getTotalSpace();
- conf.setDiskUsageThreshold((1.0f - ((float) usableSpace / (float)
totalSpace)) * 0.999f)
+ conf.setDiskUsageThreshold(0.001f)
.setDiskUsageWarnThreshold(0.0f).setReadOnlyModeEnabled(true).setIsForceGCAllowWhenNoSpace(true)
.setMinUsableSizeForIndexFileCreation(Long.MAX_VALUE);
server = new BookieServer(conf);
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].