Page MenuHomePhabricator
Feed Advanced Search

May 20 2020

ClageLG added a comment to T252853: updateSearchIndex.php sql error not all tables locked.

How to temporarily disable a namespace? Just commenting out of LocalSettings.php is changing nothing. As mentioned before, I am not sure if it happened in consequence. It was just a common detail of our wiki and the wiki of Sokote zaman at Topic:Vbps68wp2h51ifg6.

May 20 2020, 12:15 PM · MW-1.35-notes, MW-1.36-notes, MW-1.37-notes (1.37.0-wmf.3; 2021-04-27), Platform Team Workboards (Clinic Duty Team), Discovery-Search (Current work), MW-1.35-release, MediaWiki-User-management, MediaWiki-libs-Rdbms, MediaWiki-Search, MediaWiki-Maintenance-system
ClageLG added a comment to T252853: updateSearchIndex.php sql error not all tables locked.

same problem with:

  • MediaWiki 1.34.0
  • PHP 7.2.24-0ubuntu0.18.04.4 (fpm-fcgi)
  • MariaDB 10.1.44-MariaDB-0ubuntu0.18.04.1
  • ICU 60.2
  • Lua 5.1.5
  • Elasticsearch 6.5.4

Like opener of Topic:Vbps68wp2h51ifg6 we have a custom namespace too, but not sure if this happened in consequence of.
Can easily be reproduced by calling updateSearchIndex.php. The tables are locked by calling lockSearchindex() and afterwards this SELECT statement is causing the Error: 1100:

SELECT  rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,temp_rev_user.revactor_actor AS `rev_actor`,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,user_name  FROM `revision` JOIN `revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) JOIN `page` ON ((page_id = rev_page)) LEFT JOIN `user` ON ((actor_rev_user.actor_user != 0) AND (user_id = actor_rev_user.actor_user))   WHERE rev_page = '330' AND page_id = '330' AND (rev_id=page_latest)  LIMIT 1

Restart and running update.php --force is not changing this. Anything I can do to help clarify?

May 20 2020, 11:41 AM · MW-1.35-notes, MW-1.36-notes, MW-1.37-notes (1.37.0-wmf.3; 2021-04-27), Platform Team Workboards (Clinic Duty Team), Discovery-Search (Current work), MW-1.35-release, MediaWiki-User-management, MediaWiki-libs-Rdbms, MediaWiki-Search, MediaWiki-Maintenance-system