This is an automated email from the ASF dual-hosted git repository. krathbun pushed a commit to branch 3.1 in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/3.1 by this push: new 99326de4c0 Bug fix admin cmd (#4923) 99326de4c0 is described below commit 99326de4c07693c053d6f22181c199c1b1501ed9 Author: Kevin Rathbun <krath...@apache.org> AuthorDate: Wed Sep 25 10:20:30 2024 -0400 Bug fix admin cmd (#4923) This fixes a bug with the admin "checkTablets" command (and maybe others) where the ZK connection is closed but is attempted to be accessed again leading to an exception. This makes sure the threads that try to access ZK are stopped before closing the connection Co-authored-by: Keith Turner <ktur...@apache.org> --- server/base/src/main/java/org/apache/accumulo/server/util/Admin.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/base/src/main/java/org/apache/accumulo/server/util/Admin.java b/server/base/src/main/java/org/apache/accumulo/server/util/Admin.java index 781037f66e..992470c1fa 100644 --- a/server/base/src/main/java/org/apache/accumulo/server/util/Admin.java +++ b/server/base/src/main/java/org/apache/accumulo/server/util/Admin.java @@ -508,6 +508,7 @@ public class Admin implements KeywordExecutable { log.error("{}", e.getMessage(), e); System.exit(3); } finally { + context.close(); SingletonManager.setMode(Mode.CLOSED); } }