From 800ed6b1e93b70bdaa031d5aab01cdffa2716206 Mon Sep 17 00:00:00 2001 From: Viktor Lofgren Date: Tue, 30 Apr 2024 18:28:49 +0200 Subject: [PATCH] (zk) Terminately immediately if zookeeper isn't found This makes debugging easier --- .../nu/marginalia/service/module/ServiceDiscoveryModule.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/common/service/java/nu/marginalia/service/module/ServiceDiscoveryModule.java b/code/common/service/java/nu/marginalia/service/module/ServiceDiscoveryModule.java index 9863a069..8e817e8d 100644 --- a/code/common/service/java/nu/marginalia/service/module/ServiceDiscoveryModule.java +++ b/code/common/service/java/nu/marginalia/service/module/ServiceDiscoveryModule.java @@ -32,11 +32,12 @@ public class ServiceDiscoveryModule extends AbstractModule { if (null == env) { System.err.println(""" ZOOKEEPER_HOSTS not set. This probably means that you are running an old installation, - or that the environment is not set up correctly. + or that the environment is not set up correctly. See the 2024-03+ migration notes, https://docs.marginalia.nu/6_notes/6_1__migrate_2024_03_plus """); + System.exit(1); } return env; }