summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai <lukai@chinamobile.com>2020-10-12 12:46:07 +0800
committerKai <lukai@chinamobile.com>2020-10-12 12:47:56 +0800
commitafa65f691d99aae98a18223ce1e670aba0f4cabd (patch)
treee109b5c377cc02990886d01e5b8326d81b5b4b7d
parent0a5a6e0459876316b633b3801c2475b5a92d38a5 (diff)
Fix issue: requestID issue on TCAgen2 CL output1.2.1-tca-gen2
Issue-ID: DCAEGEN2-2469 Signed-off-by: Kai Lu <lukai@chinamobile.com> Change-Id: I259a97242352fbe32d0711565008efe9256d47d9
-rw-r--r--dcae-analytics/dcae-analytics-web/src/main/java/org/onap/dcae/analytics/web/dmaap/MrMessageSplitter.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/dcae-analytics/dcae-analytics-web/src/main/java/org/onap/dcae/analytics/web/dmaap/MrMessageSplitter.java b/dcae-analytics/dcae-analytics-web/src/main/java/org/onap/dcae/analytics/web/dmaap/MrMessageSplitter.java
index 0396005..f8ab481 100644
--- a/dcae-analytics/dcae-analytics-web/src/main/java/org/onap/dcae/analytics/web/dmaap/MrMessageSplitter.java
+++ b/dcae-analytics/dcae-analytics-web/src/main/java/org/onap/dcae/analytics/web/dmaap/MrMessageSplitter.java
@@ -22,7 +22,6 @@ package org.onap.dcae.analytics.web.dmaap;
import static org.apache.commons.text.StringEscapeUtils.unescapeJava;
import static org.apache.commons.text.StringEscapeUtils.unescapeJson;
import static org.onap.dcae.analytics.model.AnalyticsHttpConstants.REQUEST_ID_HEADER_KEY;
-import static org.onap.dcae.analytics.model.AnalyticsModelConstants.ANALYTICS_REQUEST_ID_DELIMITER;
import java.io.IOException;
import java.util.Collections;
@@ -95,8 +94,7 @@ public class MrMessageSplitter extends AbstractMessageSplitter {
MessageBuilder
.withPayload(messagePartitions.get(0))
.copyHeaders(message.getHeaders())
- .setHeader(REQUEST_ID_HEADER_KEY,
- requestId + ANALYTICS_REQUEST_ID_DELIMITER + batchIndex)
+ .setHeader(REQUEST_ID_HEADER_KEY, requestId)
.build()
);