jenkins-bot has submitted this change and it was merged.

Change subject: HACK: Return 500 for urwiki:نام_مقامات_اے
......................................................................


HACK: Return 500 for urwiki:نام_مقامات_اے

* This page is memory/cpu spikes and timeouts that aren't
  doing a clean process restart.
* Weekend and hard to get things fixed now. So, hack till Monday.

Change-Id: I71ceedb726315ccba6dcb74359d97a21287f1c24
---
M api/routes.js
1 file changed, 6 insertions(+), 0 deletions(-)

Approvals:
  Subramanya Sastry: Verified; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/api/routes.js b/api/routes.js
index 2f80434..74e2caf 100644
--- a/api/routes.js
+++ b/api/routes.js
@@ -364,6 +364,12 @@
        }
 
        function parsePageWithOldid() {
+               if (prefix === 'urwiki' && res.local('pageName') === 
'نام_مقامات_اے') {
+                       env.log("error", "Returning http 500 for 
urwiki:نام_مقامات_اے'");
+                       return new Promise(function(resolve, reject) {
+                               reject();
+                       });
+               }
                return parse( env, req, res ).then(function( doc ) {
                        if ( req.headers.cookie || v2 ) {
                                // Don't cache requests with a session.

-- 
To view, visit https://gerrit.wikimedia.org/r/182640
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I71ceedb726315ccba6dcb74359d97a21287f1c24
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: Yuvipanda <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to