Skip to content
Merged
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 @@ -3,11 +3,11 @@
public class AdminUIConfig {

/**
* The key to configure how long (in milliseconds) should the Admin UI wait
* The key to configure how long (in milliseconds) should the MetadataKB wait
* until it tries to ask for all KBs in the network. This value should probably
* be higher in distributed mode, to allow the participants to reach equilibrium
* with respect to knowledge about each other.
*/
public static final String CONF_KEY_INITIAL_ADMIN_UI_DELAY = "initial.admin.ui.delay";
public static final String CONF_KEY_INITIAL_METADATA_DELAY = "initial.metadata.delay";

}
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void syncKIs() {
// to receive the initial state, we do a single Ask (after sleeping for a
// specific amount of time)
try {
Thread.sleep(ConfigProvider.getConfig().getValue(AdminUIConfig.CONF_KEY_INITIAL_ADMIN_UI_DELAY,
Thread.sleep(ConfigProvider.getConfig().getValue(AdminUIConfig.CONF_KEY_INITIAL_METADATA_DELAY,
Integer.class));
} catch (InterruptedException e) {
LOG.error("Initial metadata KB delay should not fail.", e);
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
initial.admin.ui.delay = 5000
initial.metadata.delay = 5000