Lucas_Werkmeister_WMDE added a comment.

  The stack trace looks like we’re getting the bad page ID from the database; 
`EntityUsageTable::getPagesUsing()` reads the `eu_page_id` from the 
`wbc_entity_usage` table, and then `foldRowsIntoPageEntityUsages()` passes the 
`$pageId` into the `PageEntityUsages` constructor, which complains if it’s not 
an int or less than one. (`foldRowsIntoPageEntityUsages()` casts it to `int`, 
so I think the `< 1` is the only relevant part of that condition.)
  
  However, I can’t find any such rows in the arwiki or dewiki tables now (the 
two wikis where this error is found in logstash):
  
    MariaDB [arwiki]> SELECT * FROM wbc_entity_usage WHERE eu_page_id < 1 OR 
eu_page_id IS NULL LIMIT 10;
    Empty set (0.001 sec)
    
    MariaDB [dewiki]> SELECT * FROM wbc_entity_usage WHERE eu_page_id < 1 OR 
eu_page_id IS NULL LIMIT 10;
    Empty set (0.001 sec)
  
  So I’m guessing that this is a transient situation that resolves itself after 
a while.

TASK DETAIL
  https://phabricator.wikimedia.org/T264929

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: WMDE-leszek, Lucas_Werkmeister_WMDE, Michael, Aklapper, BPirkle, Akuckartz, 
Iflorez, darthmon_wmde, alaa_wmde, Nandana, lucamauri, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Jonas, Verdy_p, Wikidata-bugs, aude, Lydia_Pintscher, Jdforrester-WMF, Mbch331, 
Rxy, Jay8g
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to