[
https://issues.apache.org/jira/browse/AURORA-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14129349#comment-14129349
]
David McLaughlin edited comment on AURORA-697 at 9/10/14 11:26 PM:
-------------------------------------------------------------------
{code}$ curl -v 'http://192.168.33.7:8081/api' -H 'Accept-Encoding:
gzip,deflate' -H 'Connection: keep-alive' --data-binary
'[1,"getJobSummary",1,0,{"1":{"str":"www-data"}}]' --compressed
<snip>
> POST /api HTTP/1.1
> Host: 192.168.33.7:8081
> Origin: http://192.168.33.7:8081
> Accept-Encoding: gzip,deflate
> Accept-Language: en-US,en;q=0.8
> Content-Type: text/plain;charset=UTF-8
> Accept: */*
> Connection: keep-alive
> Content-Length: 45
>
* upload completely sent off: 45 out of 45 bytes
< HTTP/1.1 200 OK
< Content-Type: application/x-thrift
< Server: Jetty(7.6.15.v20140411)
< Content-Length: 35123
<
<snipped>
{code}
Compared to:
{code}
curl -v 'http://192.168.33.7:8081/api' -H 'Accept-Encoding: gzip,deflate' -H
'Connection: keep-alive' --data-binary
'[1,"getJobSummary",1,0,{"1":{"str":"www-data"}}]' --compressed
* Trying 192.168.33.7...
* connected
* Connected to 192.168.33.7 (192.168.33.7) port 8081 (#0)
> POST /api HTTP/1.1
> Host: 192.168.33.7:8081
> Origin: http://192.168.33.7:8081
> Accept-Encoding: gzip,deflate
> Accept-Language: en-US,en;q=0.8
> User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36
> (KHTML, like Gecko) Chrome/37.0.2062.94 Safari/537.36
> Content-Type: text/plain;charset=UTF-8
> Accept: */*
> Referer: http://192.168.33.7:8081/scheduler/www-data/devel/hello_world
> Connection: keep-alive
> Content-Length: 58
>
* upload completely sent off: 58 out of 58 bytes
< HTTP/1.1 200 OK
< Content-Type: application/x-thrift
< Content-Encoding: gzip
< Transfer-Encoding: chunked
< Server: Jetty(6.1.25)
<
{code}
was (Author: davmclau):
{code}$ curl -v 'http://192.168.33.7:8081/api' -H 'Accept-Encoding:
gzip,deflate' -H 'Connection: keep-alive' --data-binary
'[1,"getJobSummary",1,0,{"1":{"str":"www-data"}}]' --compressed
<snip>
> POST /api HTTP/1.1
> Host: 192.168.33.7:8081
> Origin: http://192.168.33.7:8081
> Accept-Encoding: gzip,deflate
> Accept-Language: en-US,en;q=0.8
> Content-Type: text/plain;charset=UTF-8
> Accept: */*
> Connection: keep-alive
> Content-Length: 45
>
* upload completely sent off: 45 out of 45 bytes
< HTTP/1.1 200 OK
< Content-Type: application/x-thrift
< Server: Jetty(7.6.15.v20140411)
< Content-Length: 35123
<
<snipped>
{code}
> GZip compression regression in scheduler
> ----------------------------------------
>
> Key: AURORA-697
> URL: https://issues.apache.org/jira/browse/AURORA-697
> Project: Aurora
> Issue Type: Bug
> Components: Scheduler
> Reporter: David McLaughlin
>
> Looks like we accidentally dropped the gzip compression filter from the
> thrift over HTTP servlet.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)