You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by bo...@apache.org on 2024/03/12 09:21:05 UTC

(streampipes) branch fix-restart-multiple-adapters created (now 6d0517df5f)

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

bossenti pushed a change to branch fix-restart-multiple-adapters
in repository https://gitbox.apache.org/repos/asf/streampipes.git


      at 6d0517df5f fix: restart multiple adapter instances per worker

This branch includes the following new commits:

     new 6d0517df5f fix: restart multiple adapter instances per worker

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(streampipes) 01/01: fix: restart multiple adapter instances per worker

Posted by bo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bossenti pushed a commit to branch fix-restart-multiple-adapters
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit 6d0517df5fd57172158ef754cfada33bd16301c4
Author: bossenti <bo...@posteo.de>
AuthorDate: Tue Mar 12 10:20:51 2024 +0100

    fix: restart multiple adapter instances per worker
---
 .../streampipes/connect/management/health/AdapterHealthCheck.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/streampipes-connect-management/src/main/java/org/apache/streampipes/connect/management/health/AdapterHealthCheck.java b/streampipes-connect-management/src/main/java/org/apache/streampipes/connect/management/health/AdapterHealthCheck.java
index 210f6e6674..a8d07530c7 100644
--- a/streampipes-connect-management/src/main/java/org/apache/streampipes/connect/management/health/AdapterHealthCheck.java
+++ b/streampipes-connect-management/src/main/java/org/apache/streampipes/connect/management/health/AdapterHealthCheck.java
@@ -31,6 +31,7 @@ import org.apache.streampipes.storage.api.IAdapterStorage;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
@@ -179,7 +180,9 @@ public class AdapterHealthCheck implements Runnable {
                                        groupByWorker.get(selectedEndpointUrl)
                                                     .add(ad);
                                      } else {
-                                       groupByWorker.put(selectedEndpointUrl, List.of(ad));
+                                       List<AdapterDescription> adapterDescriptionsPerWorker = new ArrayList<>();
+                                       adapterDescriptionsPerWorker.add(ad);
+                                       groupByWorker.put(selectedEndpointUrl, adapterDescriptionsPerWorker);
                                      }
                                    }
                                  });