This is an automated email from the ASF dual-hosted git repository.
keith-turner pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/main by this push:
new 818a529a7d Starts coordinator and fate management after lock set
(#6683)
818a529a7d is described below
commit 818a529a7d3bd7e27b616876228a7782ab7d2725
Author: Keith Turner <[email protected]>
AuthorDate: Mon Nov 30 09:47:43 2026 -0500
Starts coordinator and fate management after lock set (#6683)
When the primary manager assigns fate and compaction coordination work
to assistant managers it looks for the primary manager address in
zookeeper. In the manager startup these assignment task were started
before the primary manager address was set. This caused them to
sometimes fail which spammed the logs and caused compactions to be
delayed for minutes. This was reliably happening with a KerberoseIT
causing a compaction to take 3 or 4 minutes and causing the test to
sometimes fail.
Changed the order of the manager startup code to start the fate and
compaction coordination assignment task after setting the primary
manager location in zookeeper. This avoids sometimes spamming the logs
and sometimes delaying compactions on startup.
---
.../java/org/apache/accumulo/manager/Manager.java | 24 +++++++++++++---------
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git
a/server/manager/src/main/java/org/apache/accumulo/manager/Manager.java
b/server/manager/src/main/java/org/apache/accumulo/manager/Manager.java
index 436255afd7..1662dac086 100644
--- a/server/manager/src/main/java/org/apache/accumulo/manager/Manager.java
+++ b/server/manager/src/main/java/org/apache/accumulo/manager/Manager.java
@@ -1155,16 +1155,6 @@ public class Manager extends AbstractServer
balanceManager.startBackGroundTask();
Threads.createCriticalThread("ScanServer Cleanup Thread", new
ScanServerZKCleaner()).start();
- coordinatorManager = new CoordinatorManager(context, this::fateClient);
- coordinatorManager.start();
-
- this.splitter = new Splitter(this);
- this.splitter.start();
-
- fateManager = new FateManager(getContext());
- fateManager.start();
- startFateMaintenance();
-
setupPrimaryMetrics();
ThreadPools.watchCriticalScheduledTask(context.getScheduledExecutor()
@@ -1231,6 +1221,20 @@ public class Manager extends AbstractServer
// The manager is fully initialized. Clients are allowed to connect now.
managerInitialized.set(true);
+ // Start after primary lock is advertised in zookeeper because this will
look for that in
+ // zookeeper
+ coordinatorManager = new CoordinatorManager(context, this::fateClient);
+ coordinatorManager.start();
+
+ this.splitter = new Splitter(this);
+ this.splitter.start();
+
+ // Start after primary lock is advertised in zookeeper because this will
look for that in
+ // zookeeper
+ fateManager = new FateManager(getContext());
+ fateManager.start();
+ startFateMaintenance();
+
while (!isShutdownRequested() && getThriftServer().isServing()) {
if (Thread.currentThread().isInterrupted()) {
log.info("Server process thread has been interrupted, shutting down");