Last modified: 2013-08-08 17:58:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54612, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52612 - CirrusSearch's forceSearchIndex --deletes isn't finding any deletes
CirrusSearch's forceSearchIndex --deletes isn't finding any deletes
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
CirrusSearch (Other open bugs)
unspecified
All All
: Unprioritized major (vote)
: ---
Assigned To: Nik Everett
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-07 14:42 UTC by Nik Everett
Modified: 2013-08-08 17:58 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nik Everett 2013-08-07 14:42:47 UTC
CirrusSearch's forceSearchIndex --deletes isn't finding any deletes.  To recreate:

1.  Create a page.
2.  Configure your elasticsearch hosts to something bogus.
2.  Delete it.  You should see an error deleting the document from search.
3.  In CirrusSearch run this:
php forceSearchIndex.php --deletes --from 1970-01-01T00:00:00Z

Expected:
This reports that it picked up your delete and searches for your document don't see it.

Actual:
This reports that it found no documents and searches for your document see it.


I believe this to be caused by us filtering out log_page = 0 rows in our query to logging to harvest deletes.  Deletes seem to always write 0 into that column.  Restores write the id of the restored page, which isn't useful to us anyway.
Comment 1 Nik Everett 2013-08-08 14:49:50 UTC
https://gerrit.wikimedia.org/r/78237

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links