You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2021/12/14 07:10:46 UTC

[GitHub] [incubator-inlong] bruceneenhl opened a new issue #1978: [Bug]创建多个文件导入任务,inlong-agent注册metric时报错

bruceneenhl opened a new issue #1978:
URL: https://github.com/apache/incubator-inlong/issues/1978


   ### What happened
   
   同一个数据接入业务,创建多个数据流,每个数据流均配置文件导入任务
   inlong-agent 报错如下
   `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
   
   多个导入任务正常运行
   
   ### How to reproduce
   
   同一个数据接入业务,创建多个数据流,每个数据流均配置文件导入任务
   
   ### 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
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-inlong] EMsnap commented on issue #1978: [Bug]Create multiple file import tasks, and inlong-agent reports an error when registering metric

Posted by GitBox <gi...@apache.org>.
EMsnap commented on issue #1978:
URL: https://github.com/apache/incubator-inlong/issues/1978#issuecomment-993233209


   leave it to me


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-inlong] gosonzhang closed issue #1978: [Bug]Create multiple file import tasks, and inlong-agent reports an error when registering metric

Posted by GitBox <gi...@apache.org>.
gosonzhang closed issue #1978:
URL: https://github.com/apache/incubator-inlong/issues/1978


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org