datavane / datasophon

The next generation of cloud-native big data management expert , Aims to help users rapidly build stable, efficient, and scalable cloud-native platforms for big data.
https://datasophon.github.io/datasophon-website/
Apache License 2.0
1.11k stars 387 forks source link

[Bug]: NullPointerException when dispatch agent #66

Closed davidzollo closed 1 year ago

davidzollo commented 1 year ago

What happened?

image

when processing to this step, the runtime log shows the following exception:

[INFO] 2022-12-04 14:15:45 com.datasophon.api.master.handler.host.StartWorkerHandler:[66] - end dispatcher host agent :ctyun9
[INFO] 2022-12-04 14:15:51 com.datasophon.api.master.alert.HostCheckActor:[27] - start to check host info
[INFO] 2022-12-04 14:15:56 com.datasophon.api.master.WorkerStartActor:[39] - receive message when worker first start :ctyun9
[INFO] 2022-12-04 14:15:56 com.datasophon.api.master.WorkerStartActor:[55] - host install set to 100%
[INFO] 2022-12-04 14:15:56 com.datasophon.api.master.WorkerStartActor:[69] - host install save to database
[ERROR] [12/04/2022 14:15:56.773] [datasophon-akka.actor.default-dispatcher-156] [akka://datasophon/user/master/prometheusActor] null
java.lang.NullPointerException
at com.datasophon.api.master.PrometheusActor.onReceive(PrometheusActor.java:144)
at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:165)
at akka.actor.Actor$class.aroundReceive(Actor.scala:502)
at akka.actor.UntypedActor.aroundReceive(UntypedActor.scala:95)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
at akka.actor.ActorCell.invoke(ActorCell.scala:495)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
at akka.dispatch.Mailbox.run(Mailbox.scala:224)
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:750)

Additional Information

No response

datasophon commented 1 year ago

yes , i will solve it