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

Shutdown statement sampler thread on cancel #8766

Merged
merged 1 commit into from
Mar 5, 2021

Conversation

djova
Copy link
Contributor

@djova djova commented Mar 4, 2021

What does this PR do?

Use the cancel feature added in #8463 to ensure the statement sampler thread is stopped when the check is unscheduled.

Follow-up to #8627

Motivation

Faster resource cleanup when a check is unscheduled.

Additional Notes

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have changelog/ and integration/ labels attached

@djova djova requested a review from a team as a code owner March 4, 2021 23:27
@ghost ghost added the integration/postgres label Mar 4, 2021
olivielpeau
olivielpeau previously approved these changes Mar 5, 2021
Copy link
Member

@olivielpeau olivielpeau left a comment

Choose a reason for hiding this comment

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

Looks good for agent core

hush-hush
hush-hush previously approved these changes Mar 5, 2021
Use the cancel feature added in #8463 to ensure the statement sampler thread is stopped when the check is unscheduled.

Follow-up to #8627
@djova djova dismissed stale reviews from hush-hush and olivielpeau via 52c79c8 March 5, 2021 16:44
@djova djova force-pushed the djova/postgres-check-implement-cancel branch from 810dc0e to 52c79c8 Compare March 5, 2021 16:44
@ofek ofek changed the title postgres check: shutdown statement sampler thread on cancel Shutdown statement sampler thread on cancel Mar 5, 2021
@ofek ofek merged commit 8a549aa into master Mar 5, 2021
@ofek ofek deleted the djova/postgres-check-implement-cancel branch March 5, 2021 19:02
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.

5 participants