Skip to content

Commit

Permalink
Bump ZK timeout, mark all top-level Kaldb config statics as deprecated (
Browse files Browse the repository at this point in the history
#683)

Co-authored-by: Bryan Burkholder <[email protected]>
  • Loading branch information
bryanlb and bryanlb authored Sep 21, 2023
1 parent c4787d5 commit d2c7dcd
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions kaldb/src/main/java/com/slack/kaldb/server/KaldbConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,19 @@
* <p>TODO: Set reasonable defaults for the config values.
*/
public class KaldbConfig {

// This should be either moved to a proper config, or likely completely rethought.
// This doesn't make sense as a global for all services, as each service has potentially different
// requirements
// Default start/stop duration for guava services.
public static Duration DEFAULT_START_STOP_DURATION = Duration.ofSeconds(15);
public static final int DEFAULT_ZK_TIMEOUT_SECS = 15;
@Deprecated public static Duration DEFAULT_START_STOP_DURATION = Duration.ofSeconds(15);

// This should go away, in factor of using the zkConnectionTimeoutMs config value
@Deprecated public static final int DEFAULT_ZK_TIMEOUT_SECS = 30;

public static final String CHUNK_DATA_PREFIX = "log";
// This should either be a static final closer to the chunk manager, a config value, or removed
// entirely
@Deprecated public static final String CHUNK_DATA_PREFIX = "log";

private static KaldbConfig _instance = null;

Expand Down

0 comments on commit d2c7dcd

Please sign in to comment.