Skip to content

fix(zentao): fix panic when checking db connections#6649

Merged
abeizn merged 3 commits into
apache:mainfrom
merico-ai:lw-revert-gorm-upgrade
Dec 18, 2023
Merged

fix(zentao): fix panic when checking db connections#6649
abeizn merged 3 commits into
apache:mainfrom
merico-ai:lw-revert-gorm-upgrade

Conversation

@d4x1
Copy link
Copy Markdown
Contributor

@d4x1 d4x1 commented Dec 18, 2023

⚠️ Pre Checklist

Please complete ALL items in this checklist, and remove before submitting

  • I have read through the Contributing Documentation.
  • I have added relevant tests.
  • I have added relevant documentation.
  • I will add labels to the PR, such as pr-type/bug-fix, pr-type/feature-development, etc.

Summary

What does this PR do?
Revert #6633, Fix panic in another way.

Does this close any open issues?

Closes N/A

Screenshots

Include any relevant screenshots here.

Other Information

Any other information that is important to this PR.

@d4x1 d4x1 added this to the v0.21 milestone Dec 18, 2023
@d4x1 d4x1 self-assigned this Dec 18, 2023
@d4x1 d4x1 requested review from abeizn and klesh December 18, 2023 04:12
@d4x1 d4x1 added the pr-type/bug-fix This PR fixes a bug label Dec 18, 2023
Comment thread backend/core/runner/db.go Outdated
go func() {
defer func() {
if err := recover(); err != nil {
result <- errors.Default.New("panic when checking database connections")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please pass down the err or the information will be lost

@abeizn abeizn merged commit ba70ff6 into apache:main Dec 18, 2023
@d4x1 d4x1 added the cherrypick-completed Use this alongside needs-cherrypick-* labels after the PR has been cherrypicked. label Dec 18, 2023
d4x1 added a commit that referenced this pull request Dec 18, 2023
… to v0.20.0 (#6653)

* fix(zentao): fix panic when checking db connections

* fix(zentao): return panic error info directly
@abeizn abeizn added the component/plugins This issue or PR relates to plugins label Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherrypick-completed Use this alongside needs-cherrypick-* labels after the PR has been cherrypicked. component/plugins This issue or PR relates to plugins needs-cherrypick-v0.20 pr-type/bug-fix This PR fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants