This is an automated email from the ASF dual-hosted git repository.
harishgokul01 pushed a commit to branch release-bugs
in repository https://gitbox.apache.org/repos/asf/incubator-resilientdb.git
The following commit(s) were added to refs/heads/release-bugs by this push:
new d0228f85 Add error handling for config generation in
start_kv_service_monitoring.sh
d0228f85 is described below
commit d0228f852379ffc53f0f6b5984b900305cce3f24
Author: harish876 <[email protected]>
AuthorDate: Sat Nov 1 05:06:14 2025 +0000
Add error handling for config generation in start_kv_service_monitoring.sh
- Included a check to ensure the configuration and certificates are
generated successfully before proceeding with the server startup.
- Added an error message and exit code to handle failures in the config
generation process.
---
service/tools/kv/server_tools/start_kv_service_monitoring.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/service/tools/kv/server_tools/start_kv_service_monitoring.sh
b/service/tools/kv/server_tools/start_kv_service_monitoring.sh
index 696f325f..d90f8dbf 100755
--- a/service/tools/kv/server_tools/start_kv_service_monitoring.sh
+++ b/service/tools/kv/server_tools/start_kv_service_monitoring.sh
@@ -24,6 +24,11 @@ WORK_PATH=$PWD
CERT_PATH=${WORK_PATH}/service/tools/data/cert/
GRAFANA_PORT=8090
+./service/tools/kv/server_tools/generate_config.sh || {
+ echo "Failed to generate configs/certificates" 1>&2
+ exit 1
+}
+
bazel build //service/kv:kv_service --define enable_leveldb=True $@
nohup $SERVER_PATH $SERVER_CONFIG $CERT_PATH/node1.key.pri
$CERT_PATH/cert_1.cert 8090 > server0.log &