Jump to content

User:Bhartshorne~labswiki/truncated thumbnail issue

From Wikitech

code

on ms-fe1 at /root/abortednet/abort-connection-bunchabytes-2012-02-10

Output

Note the Content-Length from ms5 and then later from Swift. Also note that swift didn't have the object after the dropped or first-10 connection, only after requesting the whole file.

root@ms-fe1:~/abortednet# ./abort-connection-bunchabytes 
dropping connection
done
listening for first 10 packets
. . . . . . . . . done
about to ask swift:
Object 'wikipedia-commons-local-thumb.a2/a/a2/Little_kitten_.jpg/1814px-Little_kitten_.jpg' not found

asking ms5 about the file:
HTTP/1.1 200 OK
Server: nginx/0.7.65
Date: Thu, 16 Feb 2012 20:22:00 GMT
Content-Type: image/jpeg
Content-Length: 421011
Last-Modified: Thu, 16 Feb 2012 20:21:59 GMT
Connection: keep-alive
Accept-Ranges: bytes

done
listening for first 10 packets
. . . . . . . . . done
about to ask swift:
Object 'wikipedia-commons-local-thumb.a2/a/a2/Little_kitten_.jpg/1814px-Little_kitten_.jpg' not found
listening for whole file
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . got the whole file
done
about to ask swift:
       Account: AUTH_43651b15-ed7a-40b6-b745-47666abf8dfe
     Container: wikipedia-commons-local-thumb.a2
        Object: a/a2/Little_kitten_.jpg/1814px-Little_kitten_.jpg
  Content Type: image/jpeg
Content Length: 327680
 Last Modified: Thu, 16 Feb 2012 20:22:01 GMT
          ETag: 15d8103c12b155be589b9028616512e2
 Accept-Ranges: bytes
dropping connection
done
about to ask swift:
       Account: AUTH_43651b15-ed7a-40b6-b745-47666abf8dfe
     Container: wikipedia-commons-local-thumb.a2
        Object: a/a2/Little_kitten_.jpg/1814px-Little_kitten_.jpg
  Content Type: image/jpeg
Content Length: 327680
 Last Modified: Thu, 16 Feb 2012 20:22:01 GMT
          ETag: 15d8103c12b155be589b9028616512e2
 Accept-Ranges: bytes