Page MenuHomePhabricator

Refine error behavior of `bin/search index`
ClosedPublic

Authored by epriestley on Sep 27 2015, 5:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 25 2025, 6:31 AM
Unknown Object (File)
May 24 2025, 5:16 PM
Unknown Object (File)
May 9 2025, 9:53 AM
Unknown Object (File)
Apr 24 2025, 2:12 AM
Unknown Object (File)
Apr 17 2025, 8:37 AM
Unknown Object (File)
Apr 16 2025, 10:02 PM
Unknown Object (File)
Mar 23 2025, 3:00 AM
Unknown Object (File)
Mar 22 2025, 11:42 AM
Subscribers
None

Details

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.

Diff Detail

Repository
rP Phabricator
Branch
xcode2
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 8069
Build 9170: [Placeholder Plan] Wait for 30 Seconds
Build 9169: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Refine error behavior of `bin/search index`.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Sep 27 2015, 6:52 PM
This revision was automatically updated to reflect the committed changes.