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

Dump stack trace when the plugin server handles panic #5110

Merged
merged 1 commit into from
Jul 11, 2022

Conversation

reasonerjt
Copy link
Contributor

@reasonerjt reasonerjt commented Jul 10, 2022

Mitigate the issue mentioned in #4782
When there's a bug or misconfiguration that causes nil pointer there
will be more stack trace information to help us debug.

Signed-off-by: Daniel Jiang [email protected]

Thank you for contributing to Velero!

Please add a summary of your change

Does your change fix a particular issue?

Fixes #4815

Please indicate you've done the following:

  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Created a changelog file or added /kind changelog-not-required as a comment on this pull request.
  • Updated the corresponding documentation in site/content/docs/main.

Mitigate the issue mentioned in vmware-tanzu#4782
When there's a bug or misconfiguration that causes nil pointer there
will be more stack trace information to help us debug.

Signed-off-by: Daniel Jiang <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Jul 10, 2022

Codecov Report

Merging #5110 (9102f53) into main (267db7a) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #5110      +/-   ##
==========================================
- Coverage   41.30%   41.29%   -0.01%     
==========================================
  Files         210      211       +1     
  Lines       18439    18443       +4     
==========================================
  Hits         7616     7616              
- Misses      10253    10254       +1     
- Partials      570      573       +3     
Impacted Files Coverage Δ
pkg/plugin/framework/handle_panic.go 25.00% <0.00%> (-1.67%) ⬇️
pkg/restore/restore.go 64.06% <0.00%> (-0.57%) ⬇️
pkg/util/kube/predicate.go 57.14% <0.00%> (ø)
...g/controller/backup_storage_location_controller.go 64.40% <0.00%> (+5.49%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 267db7a...9102f53. Read the comment docs.

@blackpiglet blackpiglet merged commit eaf97e7 into vmware-tanzu:main Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

stacktrace is lost when panic happens in "ChangeStorageClassRestoreItemAction"
4 participants