From e379d3481208f2f1504a381ede151d99133ad146 Mon Sep 17 00:00:00 2001 From: Keith Turner Date: Sat, 28 Feb 2026 01:07:50 +0000 Subject: [PATCH] logs uncaught errors in AbstractServers While working #6139 caused an exception in the servers main threads that also initiated a halt. The halt seemed to preempt java from printing exceptions from the main thread, so the exception was never seen. This made tracking the bug down more difficult. --- .../src/main/java/org/apache/accumulo/server/AbstractServer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/base/src/main/java/org/apache/accumulo/server/AbstractServer.java b/server/base/src/main/java/org/apache/accumulo/server/AbstractServer.java index eb5bce1d1ad..29437f6c38e 100644 --- a/server/base/src/main/java/org/apache/accumulo/server/AbstractServer.java +++ b/server/base/src/main/java/org/apache/accumulo/server/AbstractServer.java @@ -228,6 +228,7 @@ public void runServer() throws Exception { log.info(getClass().getSimpleName() + " process shut down."); Throwable thrown = err.get(); if (thrown != null) { + log.error("Uncaught exception ", thrown); if (thrown instanceof Error) { throw (Error) thrown; }