Homec4science

Refine error behavior of `bin/search index`

Authored by epriestley <git@epriestley.com> on Sep 27 2015, 22:11.

Description

Refine error behavior of bin/search index

Summary: Fixes T5991. If all requested documents failed to index, consider this a catastrophic failure and exit with an error code.

Test Plan:

  • Ran bin/search index --type TASK, observed successful exit despite a small number of un-indexable documents.
  • Ran bin/search index PHID-TASK-xxx for an invalid task, observed exception on exit after complete failure.
  • Ran normal indexing through daemons.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T5991

Differential Revision: https://secure.phabricator.com/D14174

Details

Committed
epriestley <git@epriestley.com>Sep 27 2015, 22:11
Pushed
aubortJan 31 2017, 17:16
Parents
rPHc99508cfe26f: Explain upstream attitudes toward CLI exit codes
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH24845c70b918: Refine error behavior of `bin/search index` (authored by epriestley <git@epriestley.com>).Sep 27 2015, 22:11