You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@inlong.apache.org by GitBox <gi...@apache.org> on 2022/08/16 07:12:25 UTC
[GitHub] [inlong] lucaspeng12138 opened a new issue, #5567: [Bug][TubeMQ] Master start failed with NullPointerException
lucaspeng12138 opened a new issue, #5567:
URL: https://github.com/apache/inlong/issues/5567
### What happened
Master start failed with NullPointerException.
java.lang.NullPointerException: null
at io.prometheus.client.CollectorRegistry.collectorNames(CollectorRegistry.java:119) ~[simpleclient-0.14.1.jar:?]
at io.prometheus.client.CollectorRegistry.register(CollectorRegistry.java:50) ~[simpleclient-0.14.1.jar:?]
at io.prometheus.client.Collector.register(Collector.java:308) ~[simpleclient-0.14.1.jar:?]
at io.prometheus.client.Collector.register(Collector.java:301) ~[simpleclient-0.14.1.jar:?]
at org.apache.inlong.tubemq.server.master.stats.prometheus.MasterPromMetricService.start(MasterPromMetricService.java:52) ~[tubemq-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
at org.apache.inlong.tubemq.server.master.TMaster.<init>(TMaster.java:219) ~[tubemq-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
at org.apache.inlong.tubemq.server.tools.MasterStartup.main(MasterStartup.java:44) ~[tubemq-server-1.3.0-SNAPSHOT.jar:1.3.0-SNAPSHOT]
### What you expected to happen
Master start normally.
### How to reproduce
File: inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/stats/prometheus/MasterPromMetricService.java
Caused by _start()_ function, _register()_ will use mfs which is returned from _collect()_. And when tubemq-master start, _collect()_ will return null. Then NullPointerException happens.
### Environment
_No response_
### InLong version
master
### InLong Component
InLong TubeMQ
### 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: dev-unsubscribe@inlong.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [inlong] lucaspeng12138 commented on issue #5567: [Bug][TubeMQ] Master start failed with NullPointerException
Posted by GitBox <gi...@apache.org>.
lucaspeng12138 commented on issue #5567:
URL: https://github.com/apache/inlong/issues/5567#issuecomment-1216238809
@gosonzhang please have a check, thanks.
--
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] [inlong] gosonzhang commented on issue #5567: [Bug][TubeMQ] Master start failed with NullPointerException
Posted by GitBox <gi...@apache.org>.
gosonzhang commented on issue #5567:
URL: https://github.com/apache/inlong/issues/5567#issuecomment-1216291010
@lucaspeng12138, thanks!
This is my fault, sorry, I'll deal with it right now!
--
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] [inlong] gosonzhang closed issue #5567: [Bug][TubeMQ] Master start failed with NullPointerException
Posted by GitBox <gi...@apache.org>.
gosonzhang closed issue #5567: [Bug][TubeMQ] Master start failed with NullPointerException
URL: https://github.com/apache/inlong/issues/5567
--
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: dev-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org