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

fixes incorrect usage of backoff in GC #1445

Merged
merged 1 commit into from
Jul 17, 2023
Merged

fixes incorrect usage of backoff in GC #1445

merged 1 commit into from
Jul 17, 2023

Conversation

vroldanbet
Copy link
Contributor

@vroldanbet vroldanbet commented Jul 15, 2023

Closes #1444

once MaxElapsedTime has elapsed, the backoff switches to the value of Stop which is -1. This means it
will effectively remove the backoff and a storm of requests will hit the DB.

I also changed it in every instance I found because the default behaviour is dangerous.

@vroldanbet vroldanbet requested a review from a team as a code owner July 15, 2023 10:17
@vroldanbet vroldanbet self-assigned this Jul 15, 2023
@github-actions github-actions bot added the area/datastore Affects the storage system label Jul 15, 2023
@josephschorr
Copy link
Member

@vroldanbet Can we add a test for this somehow? Perhaps initializing the GC with settings that get it to reproduce the old behavior?

once `MaxElapsedTime` has elapsed, the backoff switches
to the value of `Stop` which is -1. This mean it
will effectively remove the backoff and a storm of requests
will hit the DB.

I also changed it in every instance I found because the default
behaviour is dangerous.

See #1444
@github-actions github-actions bot added the area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) label Jul 17, 2023
@vroldanbet
Copy link
Contributor Author

@josephschorr done, please have a look

@vroldanbet vroldanbet added this pull request to the merge queue Jul 17, 2023
Copy link
Member

@josephschorr josephschorr left a comment

Choose a reason for hiding this comment

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

LGTM

Merged via the queue into main with commit 3832ee8 Jul 17, 2023
25 checks passed
@vroldanbet vroldanbet deleted the fix-GC branch July 17, 2023 14:42
@github-actions github-actions bot locked and limited conversation to collaborators Jul 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/datastore Affects the storage system area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken garbage collection backoff (Postgres)
2 participants