diff --git a/nebula/src/main/java/org/ldbcouncil/snb/impls/workloads/nebula/NebulaDbConnectionState.java b/nebula/src/main/java/org/ldbcouncil/snb/impls/workloads/nebula/NebulaDbConnectionState.java index 1655e302c..488e247e6 100644 --- a/nebula/src/main/java/org/ldbcouncil/snb/impls/workloads/nebula/NebulaDbConnectionState.java +++ b/nebula/src/main/java/org/ldbcouncil/snb/impls/workloads/nebula/NebulaDbConnectionState.java @@ -38,8 +38,8 @@ public NebulaDbConnectionState(Map properties, NebulaQueryStore password = properties.get("password"); String endPoint = properties.get("endpoint"); spaceName = properties.get("spaceName"); - printErrors = Boolean.parseBoolean(properties.get("printErrors")); - int maxConnSize = Integer.parseInt(properties.get("max_conn_size")); + printErrors = Boolean.parseBoolean(properties.getOrDefault("printErrors", "false")); + int maxConnSize = Integer.parseInt(properties.getOrDefault("max_conn_size", "500")); NebulaPoolConfig nebulaPoolConfig = new NebulaPoolConfig(); nebulaPoolConfig.setMaxConnSize(maxConnSize);