Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]Create multiple file import tasks, and inlong-agent reports an error when registering metric #1978

Closed
1 of 2 tasks
bruceneenhl opened this issue Dec 14, 2021 · 1 comment · Fixed by #1983
Closed
1 of 2 tasks
Assignees
Labels
component/agent type/bug Something is wrong
Milestone

Comments

@bruceneenhl
Copy link
Contributor

bruceneenhl commented Dec 14, 2021

What happened

For the same data access service, create multiple data streams, and each data stream is configured with file import tasks,
the inlong-agent reports the error as follows:

2021-12-14 11:40:42,640 ERROR [job-running-thread-5] (metrics.MetricRegister@register:53): org.apache.inlong:type=SinkMetric,tagName=AgentProxySinkMetric javax.management.InstanceAlreadyExistsException: org.apache.inlong:type=SinkMetric,tagName=AgentProxySinkMetric at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324) at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522) at org.apache.inlong.commons.config.metrics.MetricRegister.register(MetricRegister.java:50) at org.apache.inlong.agent.plugin.metrics.SinkJmxMetric.<init>(SinkJmxMetric.java:44) at org.apache.inlong.agent.plugin.sinks.ProxySink.<init>(ProxySink.java:101) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at org.apache.inlong.agent.core.job.Job.createTasks(Job.java:88) at org.apache.inlong.agent.core.job.JobWrapper.submitAllTasks(JobWrapper.java:84) at org.apache.inlong.agent.core.job.JobWrapper.run(JobWrapper.java:110) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

What you expected to happen

Multiple import tasks run normally

How to reproduce

Create multiple data streams for the same data access service, and each data stream is configured with file import tasks

Environment

No response

InLong version

master

InLong Component

InLong Agent

Are you willing to submit PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

@bruceneenhl bruceneenhl added the type/bug Something is wrong label Dec 14, 2021
@gosonzhang gosonzhang changed the title [Bug]创建多个文件导入任务,inlong-agent注册metric时报错 [Bug]Create multiple file import tasks, and inlong-agent reports an error when registering metric Dec 14, 2021
@EMsnap
Copy link
Contributor

EMsnap commented Dec 14, 2021

leave it to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/agent type/bug Something is wrong
Projects
None yet
3 participants