From 67769b1a9dbf43d226ee4f0cc11e4a2c48fb4992 Mon Sep 17 00:00:00 2001 From: Dave Marion Date: Thu, 5 Dec 2024 22:24:49 +0000 Subject: [PATCH] Fix lock verification thread reference --- .../main/java/org/apache/accumulo/server/AbstractServer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ea676349173..fe4845affe0 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 @@ -161,7 +161,7 @@ public void startServiceLockVerificationThread() { final long interval = getConfiguration().getTimeInMillis(Property.GENERAL_SERVER_LOCK_VERIFICATION_INTERVAL); if (interval > 0) { - final Thread lockVerificationThread = Threads.createThread("service-lock-verification-thread", + verificationThread = Threads.createThread("service-lock-verification-thread", OptionalInt.of(Thread.NORM_PRIORITY + 1), () -> { while (true && serverThread.isAlive()) { ServiceLock lock = getLock(); @@ -180,7 +180,7 @@ public void startServiceLockVerificationThread() { } } }); - lockVerificationThread.start(); + verificationThread.start(); } }