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] NPE bug at startup #2847

Open
1 task done
zqr10159 opened this issue Nov 30, 2024 · 9 comments
Open
1 task done

[BUG] NPE bug at startup #2847

zqr10159 opened this issue Nov 30, 2024 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@zqr10159
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

73a1118c8249596b63afa17091c893d

Expected Behavior

No response

Steps To Reproduce

No response

Environment

HertzBeat version(s):1.6.1

Debug logs

No response

Anything else?

No response

@ayu-v0
Copy link
Contributor

ayu-v0 commented Dec 1, 2024

please assign me

@ZY945
Copy link
Member

ZY945 commented Dec 2, 2024

I found that getNextCollectMetrics is called in two places, which involves obtaining priorMetrics. Only dispatchMetricsTask calls job. reconstructPriorMetrics();
image
image
image

@ayu-v0
Copy link
Contributor

ayu-v0 commented Dec 2, 2024

Perhaps the collection task is initialized the first time and does not need to be initialized later. @ZY945 i think

@ZY945
Copy link
Member

ZY945 commented Dec 2, 2024

Perhaps the collection task is initialized the first time and does not need to be initialized later. @ZY945 i think

It seems to be calling here all the time
image
image

@ayu-v0
Copy link
Contributor

ayu-v0 commented Dec 2, 2024

Perhaps the collection task is initialized the first time and does not need to be initialized later. @ZY945 i think

It seems to be calling here all the time image image

Thank you very much, I'll check again!

@ayu-v0
Copy link
Contributor

ayu-v0 commented Dec 7, 2024

I found that after debugging and checking the code for a long time, there is still no recurrence of the scene that returns null. Could you please give me a step to repeat this situation? Thanks @zqr10159

@zqr10159
Copy link
Member Author

zqr10159 commented Dec 9, 2024

no recurrence of the scene that returns null. Could

It is very likely that the problem is caused by the custom collection interval. This problem occurred after I set a monitoring task to 10 seconds.

@ZY945
Copy link
Member

ZY945 commented Dec 10, 2024

I also encountered it while monitoring, setting the monitoring time to 10 seconds and then debugging it

@ayu-v0
Copy link
Contributor

ayu-v0 commented Dec 18, 2024

I also encountered it while monitoring, setting the monitoring time to 10 seconds and then debugging it

Thank you very much for your prompt, I also found that it is the problem caused by the short interval between the two threads.
bf1451198103d2ea5a9245282971841
073ba2ecc6a4b0df9df96e6f3927962
839b93394ca570da2deb0bb56e35318
image
99ee3527713df282731fb5f8ea0e450

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

3 participants