You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2022/08/11 23:55:00 UTC

[brooklyn-server] 01/09: fix use of concurrent task list in GC

This is an automated email from the ASF dual-hosted git repository.

heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git

commit a0de263d408ae1bfd7ea2c96560d13c096e2e43a
Author: Alex Heneveld <al...@cloudsoft.io>
AuthorDate: Thu Aug 11 14:31:30 2022 +0100

    fix use of concurrent task list in GC
---
 .../apache/brooklyn/core/mgmt/internal/BrooklynGarbageCollector.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/java/org/apache/brooklyn/core/mgmt/internal/BrooklynGarbageCollector.java b/core/src/main/java/org/apache/brooklyn/core/mgmt/internal/BrooklynGarbageCollector.java
index a64fda5ddf..f66823b174 100644
--- a/core/src/main/java/org/apache/brooklyn/core/mgmt/internal/BrooklynGarbageCollector.java
+++ b/core/src/main/java/org/apache/brooklyn/core/mgmt/internal/BrooklynGarbageCollector.java
@@ -503,7 +503,7 @@ public class BrooklynGarbageCollector {
         if (!brooklynProperties.getConfig(CHECK_SUBTASK_SUBMITTERS))
             return 0;
         
-        Collection<Task<?>> allTasks = executionManager.allTasksLive();
+        Collection<Task<?>> allTasks = executionManager.getAllTasks();
         Collection<Task<?>> tasksToDelete = MutableList.of();
         try {
             for (Task<?> task: allTasks) {