Bug #10333

Log problematic records id instead of throwing exceptions in search:populate task

Added by José Raddaoui Marín over 5 years ago. Updated about 5 years ago.

Status:VerifiedStart date:09/20/2016
Priority:MediumDue date:
Assignee:José Raddaoui Marín% Done:


Category:CLI tools
Target version:Release 2.4.0
Google Code Legacy ID: Tested version:
Sponsored:No Requires documentation:

cli-search-pop-errors-output.png (19.5 KB) Dan Gillean, 05/19/2017 06:25 PM


#2 Updated by José Raddaoui Marín over 5 years ago

  • Status changed from In progress to QA/Review
  • Assignee changed from José Raddaoui Marín to Dan Gillean
  • Priority changed from High to Medium

Merged in qa/2.4.x

Now, the "Couldn't find information object (id: $id)" exceptions should be logged at the end of the process, without breaking the search index (only those records and their descendants won't be added). It will be the same for all types of records (actors, terms, etc.)

#3 Updated by Dan Gillean over 5 years ago

Radda, I'm catching up on testing - you got any ideas how to test this issue? How do I mess up the index to see this?

#4 Updated by José Raddaoui Marín over 5 years ago

Hi Dan, if you have access to the database you could do the following ...

Connect to MySQL:

mysql -hlocalhost -uroot -p

Select the "AtoM" database:

use atom;

Find some IO ids:

SELECT id FROM information_object;

Delete the publication status for some of those ids (change the ids):

DELETE FROM status WHERE object_id IN (91384, 91387, 91523);

Delete the slug for some of those IOs (change the ids):

DELETE FROM slug WHERE object_id IN (82328, 87113, 82489);

Exit MySQL:


Then try to populate the search index.

#5 Updated by Dan Gillean about 5 years ago

Minor nitpick:

the text output says: "Please, contact with an administrator."

It shouldn't have the "with." Should read: Please, contact an administrator.

This is minor, however!

#6 Updated by José Raddaoui Marín about 5 years ago

  • Status changed from Feedback to Verified


Also available in: Atom PDF