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

Commits on Jul 14, 2023

  1. (PDB-5645) Add jdbc/current-pid

    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).
    rbrw committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    305f11b View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2023

  1. (PDB-5645) query-bulldozer: deliver to the connected promise uncondit…

    …ionally
    
    No reason to check realized? since deliver has equivalent semantics.
    rbrw authored and austb committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    ab7c7d3 View commit details
    Browse the repository at this point in the history
  2. (PDB-5645) Add test-specific configuration via a ::conf/test map

    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.
    rbrw authored and austb committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    852dcba View commit details
    Browse the repository at this point in the history
  3. (PDB-5645) Improve puppetdb service scheduler shutdown messages

    Mention the name of the relevant scheduler (gc or job) in the relevant
    shutdown messages.
    rbrw authored and austb committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    62b19f4 View commit details
    Browse the repository at this point in the history
  4. (PDB-5645) Kill queries when a client abandons them

    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.
    rbrw authored and austb committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    5360afe View commit details
    Browse the repository at this point in the history
  5. (PDB-5645) Suppress query termination errors

    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.
    austb committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    b5e8a1c View commit details
    Browse the repository at this point in the history