puppetlabs / puppetdb

Centralized Puppet Storage
http://docs.puppetlabs.com/puppetdb
Apache License 2.0
301 stars 226 forks source link

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

Open traylenator opened 2 months ago

traylenator commented 2 months ago

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

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.