Smalyshev added subscribers: Gehel, BBlack.
Smalyshev added a comment.

  Looks like it's something in varnish. When I send the request locally on 
wdqs1001 or wdqs1002:
  
  `curl -D - 
'http://localhost/bigdata/namespace/wdq/sparql?query=SELECT%20%3Fitem%20WHERE%20%7B%0A%20%20%3Fitem%20wdt%3AP22%20%3Fsub0%20.%0A%20%20%3Ftree0%20(wdt%3AP40)*%20%3Fsub0%20.%0A%20%20BIND%20(wd%3AQ7210%20AS%20%3Ftree0)%0A%7D&format=json'`
  
  I get the response just fine, and it takes 11 seconds (full response size is 
1.6M). However, when I send it via the load balancer endpoint:
  
  `curl -D - 
'https://query.wikidata.org/bigdata/namespace/wdq/sparql?query=SELECT%20%3Fitem%20WHERE%20%7B%0A%20%20%3Fitem%20wdt%3AP22%20%3Fsub0%20.%0A%20%20%3Ftree0%20(wdt%3AP40)*%20%3Fsub0%20.%0A%20%20BIND%20(wd%3AQ7210%20AS%20%3Ftree0)%0A%7D&format=json'`
  
  it returns in 3 seconds and the response is empty. The header is:
  
    HTTP/1.1 200 OK
    Server: nginx/1.9.4
    Date: Sat, 19 Mar 2016 04:14:11 GMT
    Content-Type: application/sparql-results+json
    Transfer-Encoding: chunked
    Connection: keep-alive
    X-Served-By: wdqs1001
    Access-Control-Allow-Origin: *
    X-Varnish: 744746864, 1317278448
    Via: 1.1 varnish, 1.1 varnish
    Age: 0
    X-Cache: cp1058 miss(0), cp1051 frontend miss(0)
    Set-Cookie: WMF-Last-Access=19-Mar-2016;Path=/;HttpOnly;Expires=Wed, 20 Apr 
2016 00:00:00 GMT
    X-Analytics: https=1;nocookies=1
    X-Client-IP: 2620:0:861:107:92b1:1cff:fe1d:e7e5
  
  I think something is confusing one of the varnishes. @BBlack, @Gehel - maybe 
you could take a look at this?

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

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

To: Smalyshev
Cc: BBlack, Gehel, Nikki, Mbch331, Magnus, JanZerebecki, Smalyshev, Aklapper, 
StudiesWorld, Bugreporter, debt, D3r1ck01, FloNight, Izno, jkroll, 
Wikidata-bugs, Jdouglas, aude, Deskana, Manybubbles



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to