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

(PDB-5645) add query monitor #3837

Merged
merged 6 commits into from
Jul 19, 2023
Merged

Conversation

austb
Copy link
Contributor

@austb austb commented Jul 18, 2023

No description provided.

rbrw and others added 6 commits July 14, 2023 12:03
Create a new function from the existing scf.storage bulldozer code so
we'll be able to use it elsewhere (e.g. in the query monitor).
…ionally

No reason to check realized? since deliver has equivalent semantics.
Make it possible to provide a test-oriented map in the server config
that will be broadly available at run time.

If a [:puppetdb :puppetlabs.puppetdb.config/test] value exists in the
incoming config, pass it straight through to the final configuration,
and then transfer the value into the puppetdb service shared globals
as :puppetlabs.puppetdb.config/test.

This is intended to provide a better alternative to a number of cases
that might otherwise be handled via redefs.
Mention the name of the relevant scheduler (gc or job) in the relevant
shutdown messages.
Add a query monitor intended to promptly terminate a monitored query
if the client disconnects before the query is finished.  Have the
monitor enforce timeouts too, since it's relatively easy, and should
be more precise (if heavier-weight), than the existing timeout-seq and
pg statement timeout based mechanisms.
When a client disconnected terminating the query was producing almost
200 lines of stack traces in the logs. This updates the error handling
to suppress the error thrown from jdbc when the monitor has detected a
query that is terminated by pg_terminate_backend.
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ austb
❌ rbrw
You have signed the CLA already but the status is still pending? Let us recheck it.

@austb austb marked this pull request as ready for review July 19, 2023 00:12
@austb austb requested review from a team as code owners July 19, 2023 00:12
@austb
Copy link
Contributor Author

austb commented Jul 19, 2023

I verified that the integration test failure is pre-existing on main and will work on that after merging this PR.

@austb austb merged commit 8a1e2ef into puppetlabs:main Jul 19, 2023
7 of 9 checks passed
@austb austb deleted the pdb-5645-add-query-monitor branch July 19, 2023 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants