Skip to content

query-timeout-default and -max cannot be set - type error. #4007

@traylenator

Description

@traylenator

Describe the Bug

Creating a file /opt/puppetlabs/puppetdb/conf.d/puppetdb.ini containing

[puppetdb]
query-timeout-default = 30

Results in puppetdb start up error.

`ERROR [p.t.internal] Error during service init!!!   clojure.lang.ExceptionInfo: Value does not match schema: {:query-timeout-default (not (instance? java.lang.String 30))}`

Trying to set it as a string "30" results in

`Configured query-timeout-default timeout must be non-negative number, not "\"300\""`

Expected Behavior

PuppetDB should start up and respect the timeout.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Install PuppetDB 8 get it running in a trivial configuration.
  2. Configure a [puppetdb] section with query-timerout-default
  3. Restart PuppetDB.

Environment

  • Version puppetdb 8.7.0
  • Platform java-1.8.0-openjdk

Additional Context

Configuration settings are here - https://www.puppet.com/docs/puppetdb/8/configure#query-timeout-default

Behaviour is exactly the same for the query-timeout-max parameter also.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions