apache / apache/rocketmq-connect

kafka-connect插件在maintainTaskState时候,因为类加载器问题导致run不起来

Open
#39 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
141
Forks
120
PR merge metrics
No merged PRs in 30d

Description

![image](https://user-images.githubusercontent.com/42512469/161071098-9976499f-9ebb-48e0-b978-823b238fc97a.png)

如图画框的部分,Future future = taskExecutor.submit(workerSourceTask); 提交到线程池后,此时线程池的类加载器是AppclassLoader,而不是pluginClassLoader,会导致WorkerSourceTask 的run方法中在启动kafkaconsumer时候报错,我报的时候加载key和value的反序列化类错误了。这个类得用pluginClassLoader加载而不能用appClassLoader加载。

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.