You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2021/08/17 20:52:51 UTC

[incubator-streampipes] branch STREAMPIPES-319 updated: [hotfix] Resolve merge conflict in pipeline executor

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

riemer pushed a commit to branch STREAMPIPES-319
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git


The following commit(s) were added to refs/heads/STREAMPIPES-319 by this push:
     new 6961276  [hotfix] Resolve merge conflict in pipeline executor
6961276 is described below

commit 6961276e131c78313a36d4f0bbfabfafaf163b03
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Tue Aug 17 22:52:41 2021 +0200

    [hotfix] Resolve merge conflict in pipeline executor
---
 .../streampipes/manager/execution/http/PipelineExecutor.java     | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/execution/http/PipelineExecutor.java b/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/execution/http/PipelineExecutor.java
index 85553b2..b4492bc 100644
--- a/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/execution/http/PipelineExecutor.java
+++ b/streampipes-pipeline-management/src/main/java/org/apache/streampipes/manager/execution/http/PipelineExecutor.java
@@ -18,6 +18,8 @@
 
 package org.apache.streampipes.manager.execution.http;
 
+import org.apache.streampipes.commons.MD5;
+import org.apache.streampipes.commons.Utils;
 import org.apache.streampipes.commons.constants.GlobalStreamPipesConstants;
 import org.apache.streampipes.commons.exceptions.NoServiceEndpointsAvailableException;
 import org.apache.streampipes.manager.execution.endpoint.ExtensionsServiceEndpointGenerator;
@@ -45,7 +47,10 @@ import org.apache.streampipes.svcdiscovery.api.model.DefaultSpServiceTags;
 import org.apache.streampipes.svcdiscovery.api.model.SpServiceUrlProvider;
 import org.lightcouch.DocumentConflictException;
 
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Date;
+import java.util.List;
 import java.util.stream.Collectors;
 
 public class PipelineExecutor {
@@ -174,7 +179,7 @@ public class PipelineExecutor {
             .filter(is -> is.getEventGrounding().getTransportProtocol() instanceof KafkaTransportProtocol)
             .map(is -> is.getEventGrounding().getTransportProtocol())
             .map(KafkaTransportProtocol.class::cast)
-            .forEach(tp -> tp.setGroupId(UUID.randomUUID().toString()));
+            .forEach(tp -> tp.setGroupId(Utils.filterSpecialChar(pipeline.getName()) + MD5.crypt(tp.getElementId())));
   }
 
   private void decryptSecrets(List<InvocableStreamPipesEntity> graphs) {