Bug #13290

Purge task flushes the ES index but does not re-index the initial data

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

Status:VerifiedStart date:04/17/2020
Priority:MediumDue date:
Assignee:Dan Gillean% Done:

0%

Category:CLI tools
Target version:Release 2.5.4
Google Code Legacy ID: Tested version:2.4, 2.5, 2.6
Sponsored:No Requires documentation:

Description

The documentation doesn't indicate that the search populate needs to be executed after:

https://www.accesstomemory.org/en/docs/2.5/admin-manual/maintenance/cli-tools/#purging-all-data

We could add a note to the docs and remove the index flush from the task or populate the index directly in the purge task.


Related issues

Duplicates Access to Memory (AtoM) - Bug #7584: Fixture terms not in search index after tools:purge Verified 11/18/2014

History

#1 Updated by José Raddaoui Marín about 2 years ago

  • Status changed from New to Code Review
  • Assignee changed from José Raddaoui Marín to Mike Cantelon

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

  • Status changed from Code Review to QA/Review
  • Assignee changed from Mike Cantelon to Dan Gillean

Merged in qa/2.6.x and cherry-picked to dev/2.5.x-performance-cherry-picks.

#3 Updated by Dan Gillean about 2 years ago

  • Subject changed from Purge task fushes the ES index but does not add the initial data (316 terms in 2.5) to Purge task flushes the ES index but does not re-index the initial data

#4 Updated by Dan Gillean about 2 years ago

  • Status changed from QA/Review to Feedback
  • Assignee changed from Dan Gillean to José Raddaoui Marín

Seeing this when running the purge task now:

PHP Notice:  Undefined index: session_cookie_path in /usr/share/nginx/atom/vendor/symfony/lib/storage/sfSessionStorage.class.php on line 79

Notice: Undefined index: session_cookie_path in /usr/share/nginx/atom/vendor/symfony/lib/storage/sfSessionStorage.class.php on line 79
PHP Warning:  session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in /usr/share/nginx/atom/vendor/symfony/lib/storage/sfSessionStorage.class.php on line 83

Warning: session_set_cookie_params(): Cannot change session cookie parameters when headers already sent in /usr/share/nginx/atom/vendor/symfony/lib/storage/sfSessionStorage.class.php on line 83
PHP Warning:  session_start(): Cannot start session when headers already sent in /usr/share/nginx/atom/vendor/symfony/lib/storage/sfSessionStorage.class.php on line 92

Warning: session_start(): Cannot start session when headers already sent in /usr/share/nginx/atom/vendor/symfony/lib/storage/sfSessionStorage.class.php on line 92
PHP Warning:  ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /usr/share/nginx/atom/vendor/symfony/lib/user/sfBasicSecurityUser.class.php on line 257

Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time in /usr/share/nginx/atom/vendor/symfony/lib/user/sfBasicSecurityUser.class.php on line 257
>> propel    load data from "/usr/share/nginx/atom/data/fixtures" 

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

  • Status changed from Feedback to Code Review
  • Assignee deleted (José Raddaoui Marín)

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

  • Status changed from Code Review to QA/Review
  • Assignee set to Dan Gillean

Merged in qa/2.6.x and dev/2.5.x-performance-cherry-picks.

#7 Updated by Dan Gillean about 2 years ago

  • Status changed from QA/Review to Verified

Works in 2.5.4 dev branch! Thanks Radda!

#8 Updated by Dan Gillean about 2 years ago

  • Duplicates Bug #7584: Fixture terms not in search index after tools:purge added

Also available in: Atom PDF