Skip to content

Commit

Permalink
Fix for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat committed Nov 9, 2018
1 parent c879e0d commit 2188436
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Expand Up @@ -26,6 +26,7 @@
import java.util.Collections;
import java.util.Enumeration;

import org.apache.bookkeeper.common.allocator.PoolingPolicy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -53,6 +54,7 @@ public static ServerConfiguration newServerConfiguration() {
confReturn.setGcWaitTime(1000);
confReturn.setDiskUsageThreshold(0.999f);
confReturn.setDiskUsageWarnThreshold(0.99f);
confReturn.setAllocatorPoolingPolicy(PoolingPolicy.UnpooledHeap);
setLoopbackInterfaceAndAllowLoopback(confReturn);
return confReturn;
}
Expand Down
Expand Up @@ -41,6 +41,7 @@
import org.apache.bookkeeper.bookie.Bookie;
import org.apache.bookkeeper.bookie.BookieException;
import org.apache.bookkeeper.client.BookKeeperTestClient;
import org.apache.bookkeeper.common.allocator.PoolingPolicy;
import org.apache.bookkeeper.conf.AbstractConfiguration;
import org.apache.bookkeeper.conf.ClientConfiguration;
import org.apache.bookkeeper.conf.ServerConfiguration;
Expand Down Expand Up @@ -237,6 +238,7 @@ protected void stopZKCluster() throws Exception {
protected void startBKCluster(String metadataServiceUri) throws Exception {
baseConf.setMetadataServiceUri(metadataServiceUri);
baseClientConf.setMetadataServiceUri(metadataServiceUri);
baseClientConf.setAllocatorPoolingPolicy(PoolingPolicy.UnpooledHeap);
if (numBookies > 0) {
bkc = new BookKeeperTestClient(baseClientConf, new TestStatsProvider());
}
Expand Down Expand Up @@ -303,6 +305,7 @@ protected ServerConfiguration newServerConfiguration(int port, File journalDir,
}
conf.setLedgerDirNames(ledgerDirNames);
conf.setEnableTaskExecutionStats(true);
conf.setAllocatorPoolingPolicy(PoolingPolicy.UnpooledHeap);
return conf;
}

Expand Down

0 comments on commit 2188436

Please sign in to comment.