Skip to content

Commit

Permalink
[INLONG-8649][Agent]fix bug: proxysink thread leaks when the dataprox…
Browse files Browse the repository at this point in the history
…y sdk init failed
  • Loading branch information
justinwwhuang committed Aug 7, 2023
1 parent 716cafa commit e16f35c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ public void init(JobProfile jobConf) {
messageFilter = initMessageFilter(jobConf);
fieldSplitter = jobConf.get(CommonConstants.FIELD_SPLITTER, DEFAULT_FIELD_SPLITTER).getBytes(
StandardCharsets.UTF_8);
executorService.execute(flushCache());
senderManager = new SenderManager(jobConf, inlongGroupId, sourceName);
try {
senderManager.Start();
executorService.execute(flushCache());
} catch (Throwable ex) {
LOGGER.error("error while init sender for group id {}", inlongGroupId);
ThreadUtils.threadThrowableHandler(Thread.currentThread(), ex);
Expand Down

0 comments on commit e16f35c

Please sign in to comment.