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

aloyszhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new 61e0d1d  [INLONG-2030][Bug]inlong-agent raises NPE error when running 
(#2031)
61e0d1d is described below

commit 61e0d1d0d91bbbc996554c13b9c8f1a3dbcb49e5
Author: ziruipeng <[email protected]>
AuthorDate: Mon Dec 20 15:09:54 2021 +0800

    [INLONG-2030][Bug]inlong-agent raises NPE error when running (#2031)
---
 .../src/main/java/org/apache/inlong/agent/plugin/sinks/ProxySink.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/sinks/ProxySink.java
 
b/inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/sinks/ProxySink.java
index 6ec9906..b28eebb 100755
--- 
a/inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/sinks/ProxySink.java
+++ 
b/inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/sinks/ProxySink.java
@@ -202,11 +202,11 @@ public class ProxySink extends AbstractSink {
         fieldSplitter = jobConf.get(CommonConstants.FIELD_SPLITTER, 
DEFAULT_FIELD_SPLITTER).getBytes(
             StandardCharsets.UTF_8);
         executorService.execute(flushCache());
-        senderManager = new SenderManager(jobConf, inlongStreamId, sourceFile);
+        senderManager = new SenderManager(jobConf, inlongGroupId, sourceFile);
         try {
             senderManager.addMessageSender();
         } catch (Exception ex) {
-            LOGGER.error("error while init sender for group id {}", 
inlongStreamId);
+            LOGGER.error("error while init sender for group id {}", 
inlongGroupId);
             throw new IllegalStateException(ex);
         }
     }

Reply via email to