Page MenuHomePhabricator

Main page doesn't get updated
Closed, InvalidPublic

Description

The en main page is currently stuck at "Andrew Johnston", which was the featured article on Dec 26.
Probably caching/etag related. We have special handling for main pages inside the MCS to use action=mobileview instead of Parsoid.

After some debugging, I noticed that the m dot RB endpoint isn't getting updated but the regular RB domain endpoint is:
https://en.m.wikipedia.org/api/rest_v1/page/mobile-sections-lead/Main_Page <-- OLD content from Dec 26
https://en.wikipedia.org/api/rest_v1/page/mobile-sections-lead/Main_Page

Unfortunately, the app is using m dot domains right now. Please advise if that can be corrected in RESTBase or requires an app change.

Event Timeline

bearND created this task.Jan 11 2016, 7:29 PM
bearND raised the priority of this task from to Unbreak Now!.
bearND updated the task description. (Show Details)
bearND added a project: Mobile-Content-Service.
bearND moved this task to Backlog on the Mobile-Content-Service board.
bearND added a subscriber: bearND.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 11 2016, 7:29 PM
bearND updated the task description. (Show Details)Jan 13 2016, 12:40 AM
bearND set Security to None.
bearND updated the task description. (Show Details)
bearND added a project: RESTBase.
bearND added subscribers: mobrovac, GWicke.
mobrovac added a comment.EditedJan 13 2016, 12:45 AM

Hmm, I'm getting the same content for both domains (the old one).

These two should be in sync, given that they both hit RESTBase for the en.wikipedia.org domain (there are no m. domains in RESTBase), so this is the good news. The old content is still shown because there is no pre-generation, and since the Main Page hasn't actually been changed since 2015-12-26, RESTBase just serves the stored version (i.e. the MCS is not contacted).

I believe the current setup only checks for new revisions (edits), but does not account for dependency changes in templates and images. Enabling pre-generation of the content should solve that issue by triggering a re-render whenever dependencies change.

I see. Ok, if pre-generation patch fixes this then there is nothing else needed for this.
Strangely, sometimes I get the 'Andrew Johnson' article and sometime I get the 'Dishonored' article of the day. Maybe a difference between the two servers? How can I check the two servers directly?

mobrovac closed this task as Invalid.Jan 13 2016, 1:00 AM
mobrovac claimed this task.

Strangely, sometimes I get the 'Andrew Johnson' article and sometime I get the 'Dishonored' article of the day. Maybe a difference between the two servers? How can I check the two servers directly?

This is possible in situations where you hit RESTBase with a request in the moment that there is some possible connection problems with the database, so that it proceeds to query the service. I'm not 100% sure this is the case here, though.

Closing this one as invalid given that this will no longer be an issue in a couple of days.

bearND added a subscriber: Dbrant.Jan 13 2016, 1:12 AM