This is an automated email from the ASF dual-hosted git repository.
kturner pushed a commit to branch 2.1
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/2.1 by this push:
new 316faefdd2 logs uncaught errors in AbstractServer (#6161)
316faefdd2 is described below
commit 316faefdd202a0e3658f0fc67758971e7644bc8a
Author: Keith Turner <[email protected]>
AuthorDate: Tue Mar 3 14:12:16 2026 -0800
logs uncaught errors in AbstractServer (#6161)
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.
---
.../base/src/main/java/org/apache/accumulo/server/AbstractServer.java | 4 ++++
1 file changed, 4 insertions(+)
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 eb5bce1d1a..7d29d914d4 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,10 @@ public abstract class AbstractServer
log.info(getClass().getSimpleName() + " process shut down.");
Throwable thrown = err.get();
if (thrown != null) {
+ System.err.println("Uncaught execption in AbstractServer.runServer");
+ thrown.printStackTrace();
+ System.err.flush();
+ log.error("Uncaught exception ", thrown);
if (thrown instanceof Error) {
throw (Error) thrown;
}