Skip to content

Commit

Permalink
Fix Fate pool watcher bug
Browse files Browse the repository at this point in the history
Was incorrectly calculating the number of TransactionRunners to execute
  • Loading branch information
kevinrr888 committed Dec 12, 2024
1 parent be9fa22 commit 6f9bea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/apache/accumulo/core/fate/Fate.java
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public void startTransactionRunners(AccumuloConfiguration conf) {
// resize the pool if the property changed
ThreadPools.resizePool(pool, conf, Property.MANAGER_FATE_THREADPOOL_SIZE);
// If the pool grew, then ensure that there is a TransactionRunner for each thread
int needed = conf.getCount(Property.MANAGER_FATE_THREADPOOL_SIZE) - pool.getQueue().size();
int needed = conf.getCount(Property.MANAGER_FATE_THREADPOOL_SIZE) - pool.getActiveCount();
if (needed > 0) {
for (int i = 0; i < needed; i++) {
try {
Expand Down

0 comments on commit 6f9bea0

Please sign in to comment.