Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ public class BookieInitializationTest extends BookKeeperClusterTestCase {

public BookieInitializationTest() {
super(0);
// disable advertised address since it takes precedence over setUseHostNameAsBookieID setting
// which is used in this test
baseConf.setAdvertisedAddress(null);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ public class CookieIndexDirTest extends BookKeeperClusterTestCase {

public CookieIndexDirTest() {
super(0);
// disable advertised address since it takes precedence over setUseHostNameAsBookieID setting
// which is used in this test
baseConf.setAdvertisedAddress(null);
}

private String newDirectory() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ public class CookieTest extends BookKeeperClusterTestCase {

public CookieTest() {
super(0);
// disable advertised address since it takes precedence over setUseHostNameAsBookieID setting
// which is used in this test
baseConf.setAdvertisedAddress(null);
}

private String newDirectory() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public class UpdateCookieCmdTest extends BookKeeperClusterTestCase {
public UpdateCookieCmdTest() {
super(0);
useUUIDasBookieId = false;
// disable advertised address since it takes precedence over setUseHostNameAsBookieID setting
// which is used in this test
baseConf.setAdvertisedAddress(null);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ public LedgerCmdTest() {
baseConf.setLedgerStorageClass(DbLedgerStorage.class.getName());
baseConf.setGcWaitTime(60000);
baseConf.setFlushInterval(1);
// disable advertised address since it takes precedence over setUseHostNameAsBookieID setting
// which is used in this test
baseConf.setAdvertisedAddress(null);
}


/**
* list of entry logger files that contains given ledgerId.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public UpdateLedgerCmdTest() {
super(3);
useUUIDasBookieId = false;
baseConf.setGcWaitTime(100000);
// disable advertised address since it takes precedence over setUseHostNameAsBookieID setting
// which is used in this test
baseConf.setAdvertisedAddress(null);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ public static ServerConfiguration newServerConfiguration() {
// enable journal format version
confReturn.setJournalFormatVersionToWrite(5);
confReturn.setAllowEphemeralPorts(false);
// use 127.0.0.1 to connect to avoid DNS resolution issues in tests
confReturn.setAdvertisedAddress("127.0.0.1");
confReturn.setBookiePort(PortManager.nextFreePort());
confReturn.setGcWaitTime(1000);
confReturn.setDiskUsageThreshold(0.999f);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ public BookieAutoRecoveryTest() throws IOException, KeeperException,
"org.apache.bookkeeper.meta.HierarchicalLedgerManagerFactory");
baseConf.setOpenLedgerRereplicationGracePeriod(openLedgerRereplicationGracePeriod);
baseConf.setRwRereplicateBackoffMs(500);
// disable advertised address since it takes precedence over setUseHostNameAsBookieID setting
// which is used in this test
baseConf.setAdvertisedAddress(null);

baseClientConf.setLedgerManagerFactoryClassName(
"org.apache.bookkeeper.meta.HierarchicalLedgerManagerFactory");
this.digestType = DigestType.MAC;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ public static void stopMiniKdc() {

public GSSAPIBookKeeperTest() {
super(0); // start them later when auth providers are configured
// disable advertised address since it takes precedence over setUseHostNameAsBookieID setting
// which is used in this test
baseConf.setAdvertisedAddress(null);
}

// we pass in ledgerId because the method may throw exceptions
Expand Down
Loading