Page MenuHomePhabricator

Soften a possible cluster search setup fatal
ClosedPublic

Authored by epriestley on Mar 28 2017, 10:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 5:42 PM
Unknown Object (File)
Wed, Dec 11, 1:23 AM
Unknown Object (File)
Thu, Dec 5, 10:07 AM
Unknown Object (File)
Thu, Dec 5, 6:29 AM
Unknown Object (File)
Wed, Nov 27, 2:06 AM
Unknown Object (File)
Nov 23 2024, 8:38 AM
Unknown Object (File)
Nov 18 2024, 4:37 PM
Unknown Object (File)
Nov 15 2024, 2:57 AM
Subscribers
None

Details

Summary

Ref T12450. The way that config repair and setup issues interact is kind of complicated, and if cluster.search is invalid we may end up using cluster.search before we repair it.

I poked at things for a bit but wasn't confident I could get it to consistently repair before we use it without doing a big messy change.

The only thing that really matters is whether "type" is valid or not, so just put a slightly softer/more-tailored check in for that.

Test Plan
  • With "type": "elastic", loaded setup issues.
  • Before patch: hard fatal.
  • After patch: softer fatal with more useful messaging.

Screen Shot 2017-03-28 at 3.11.24 PM.png (1×1 px, 247 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

src/infrastructure/cluster/config/PhabricatorClusterSearchConfigOptionType.php
7

Today is not my best day.

chad edited edge metadata.
This revision is now accepted and ready to land.Mar 28 2017, 10:28 PM
This revision was automatically updated to reflect the committed changes.