Page MenuHomePhabricator

After a fulltext write to a particular service fails, keep trying writes to other services
ClosedPublic

Authored by epriestley on Apr 2 2017, 4:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 3:56 PM
Unknown Object (File)
Mon, Apr 15, 11:38 PM
Unknown Object (File)
Thu, Apr 11, 9:11 AM
Unknown Object (File)
Tue, Apr 9, 9:09 PM
Unknown Object (File)
Mon, Apr 8, 10:10 AM
Unknown Object (File)
Fri, Apr 5, 8:48 AM
Unknown Object (File)
Fri, Mar 29, 5:55 PM
Unknown Object (File)
Feb 17 2024, 6:35 PM
Subscribers
None

Details

Summary

Ref T12450. Currently, if a write fails, we stop and don't try to write to other index services. There's no technical reason not to keep trying writes, it makes some testing easier, and it would improve behavior in a scenario where engines are configured as "primary" and "backup" and the primary service is having some issues.

Also, make "no writable services are configured" acceptable, rather than an error. This state is probably goofy but if we want to detect it I think it should probably be a config-validation issue, not a write-time check. I also think it's not totally unreasonable to want to just turn off all writes for a while (maybe to reduce load while you're doing a background update).

Test Plan
  • Configured a bad ElasticSearch engine and a good MySQL engine.
  • Ran bin/search index ... --force.
  • Saw MySQL get updated even though ElasticSearch failed.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from After a fulltext write fails, keep trying writes to After a fulltext write to a particular service fails, keep trying writes to other services.Apr 2 2017, 5:05 PM

Yes this seems reasonable.

This revision is now accepted and ready to land.Apr 2 2017, 8:39 PM
This revision was automatically updated to reflect the committed changes.