Page MenuHomePhabricator

Re-run config validation from `bin/search`
ClosedPublic

Authored by epriestley on Mar 28 2017, 8:54 PM.
Tags
None
Referenced Files
F12814129: D17574.id.diff
Thu, Mar 28, 1:48 AM
Unknown Object (File)
Fri, Mar 8, 10:39 AM
Unknown Object (File)
Mon, Mar 4, 8:27 PM
Unknown Object (File)
Feb 20 2024, 10:01 PM
Unknown Object (File)
Feb 20 2024, 6:53 AM
Unknown Object (File)
Jan 26 2024, 9:20 AM
Unknown Object (File)
Jan 17 2024, 11:33 PM
Unknown Object (File)
Dec 27 2023, 10:24 AM
Subscribers
None

Details

Summary

Ref T12450. Normally, we validate config when:

  • You restart the webserver.
  • You edit it with bin/config set ....
  • You edit it with the web UI.

However, you can also change config by editing local.json, some_env.conf.php, a SiteConfig class, etc. In these cases, you may miss config warnings.

Explicitly re-run search config checks from bin/search, similar to the additional database checks we run from bin/storage, to try to produce a better error message if the user has made a configuration error.

Test Plan
$ ./bin/search init
Usage Exception: Setting "cluster.search" is misconfigured: Invalid search engine type: elastic. Valid types are: elasticsearch, mysql.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 28 2017, 9:46 PM
This revision was automatically updated to reflect the committed changes.