Page MenuHomePhabricator

Fix an issue with URI index updates from the daemons
ClosedPublic

Authored by epriestley on May 13 2016, 1:49 PM.
Tags
None
Referenced Files
F13090256: D15908.diff
Thu, Apr 25, 2:17 AM
Unknown Object (File)
Thu, Apr 11, 6:25 AM
Unknown Object (File)
Tue, Apr 9, 11:57 PM
Unknown Object (File)
Sat, Apr 6, 7:41 PM
Unknown Object (File)
Wed, Mar 27, 12:30 PM
Unknown Object (File)
Mar 20 2024, 6:09 PM
Unknown Object (File)
Feb 19 2024, 12:28 AM
Unknown Object (File)
Feb 16 2024, 11:47 AM
Subscribers
None

Details

Summary

Ref T10923. This extension needs to load a little more data (with needURIs) to function correctly now.

(There's a recent migration does this, so indexes got updated correctly when it ran, so it hasn't been obvious that they weren't getting updated properly after that.)

Test Plan

Made an arbitrary edit to a repository, observed no more error in daemon logs.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Fix an issue with URI index updates from the daemons.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.

The exception looked something like this:

<<VERB>> PhabricatorTaskmasterDaemon Working on task 1190367 (PhabricatorSearchWorker)...
[2016-05-13 06:45:35] EXCEPTION: (PhutilProxyException) Permanent failure while executing Task ID 1190367. {>} (PhabricatorWorkerPermanentFailureException) Failed to update search index for document "PHID-REPO-i34pmj6av2r5y2xlecrl": Attempting to access attached data on PhabricatorRepository (via getURIs()), but the data is not actually attached. Before accessing attachable data on an object, you must load and attach it.

Data is normally attached by calling the corresponding needX() method on the Query class when the object is loaded. You can also call the corresponding attachX() method explicitly. at [<phabricator>/src/applications/search/worker/PhabricatorSearchWorker.php:54]
arcanist(head=master, ref.master=c58f1b9a2507), corgi(head=master, ref.master=cfed644883b0), instances(head=master, ref.master=cdb7c7f4ba51), ledger(head=master, ref.master=4da4a24b8779), libcore(), phabricator(head=uriindex, ref.master=1c73ad6a1bb0, ref.uriindex=1c73ad6a1bb0, custom=9), phutil(head=master, ref.master=b25e0477b280), services(head=master, ref.master=04ae8c8f8e3b)
  #0 <#2> PhabricatorSearchWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:122]
  #1 <#2> PhabricatorWorker::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php:171]
  #2 <#2> PhabricatorWorkerActiveTask::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php:22]
  #3 PhabricatorTaskmasterDaemon::run() called at [<phutil>/src/daemon/PhutilDaemon.php:183]
  #4 PhutilDaemon::execute() called at [<phutil>/scripts/daemon/exec/exec_daemon.php:125]
chad edited edge metadata.
This revision is now accepted and ready to land.May 13 2016, 1:50 PM
This revision was automatically updated to reflect the committed changes.