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

Add retry if a deadlock occurs on postgres within sql#sql #1460

Merged
merged 1 commit into from
Mar 23, 2021
Merged

Add retry if a deadlock occurs on postgres within sql#sql #1460

merged 1 commit into from
Mar 23, 2021

Conversation

nichtsfrei
Copy link
Member

@nichtsfrei nichtsfrei commented Mar 23, 2021

Instead of giving up within sql.c it should wait a short period and then
retry the SQL command when a deadlock occurs.

Under some circumstances it will prevent status uploading when creating
a lot of reports via gvm-tools.

What:

Why:

How did you test it:

Checklist:

@nichtsfrei nichtsfrei requested a review from a team as a code owner March 23, 2021 15:41
Instead of giving up within sql.c it should wait a short period and then
retry the SQL command when a deadlock occurs.

Under some circumstances it will prevent status uploading when creating
a lot of reports via gvm-tools.
@timopollmeier timopollmeier added the backport-to-main This pull request will be ported to the master branch label Mar 23, 2021
@nichtsfrei nichtsfrei merged commit 1fa443a into greenbone:gvmd-21.04 Mar 23, 2021
timopollmeier added a commit that referenced this pull request Mar 24, 2021
Add retry if a deadlock occurs on postgres within sql#sql (bp #1460)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-main This pull request will be ported to the master branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants