Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 366736CC6 for ; Sat, 23 Jul 2011 06:23:47 +0000 (UTC) Received: (qmail 24941 invoked by uid 500); 23 Jul 2011 06:23:46 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 24793 invoked by uid 500); 23 Jul 2011 06:23:38 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 24761 invoked by uid 99); 23 Jul 2011 06:23:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jul 2011 06:23:34 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jul 2011 06:23:31 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BDD655811F for ; Sat, 23 Jul 2011 06:23:09 +0000 (UTC) Date: Sat, 23 Jul 2011 06:23:09 +0000 (UTC) From: "Andrew Purtell (JIRA)" To: issues@hbase.apache.org Message-ID: <2144635705.797.1311402189774.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <213131967.16309.1310709780429.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HBASE-4105) Stargate does not support Content-Type: application/json and Content-Encoding: gzip in parallel MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-4105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Purtell updated HBASE-4105: ---------------------------------- Status: Patch Available (was: Open) > Stargate does not support Content-Type: application/json and Content-Encoding: gzip in parallel > ----------------------------------------------------------------------------------------------- > > Key: HBASE-4105 > URL: https://issues.apache.org/jira/browse/HBASE-4105 > Project: HBase > Issue Type: Bug > Components: rest > Affects Versions: 0.90.1 > Environment: Server: jetty/6.1.26 > REST: 0.0.2 > OS: Linux 2.6.32-bpo.5-amd64 amd64 > Jersey: 1.4 > JVM: Sun Microsystems Inc. 1.6.0_22-17.1-b03 > Reporter: Jean-Pierre Koenig > Assignee: Andrew Purtell > Labels: gzip, json, rest > Fix For: 0.90.4, 0.94.0 > > Attachments: HBASE-4105.patch > > > When: > curl -H "Accept: application/json" http://localhost:3000/version -v > Response is: > About to connect() to localhost port 3000 (#0) > Trying 127.0.0.1... connected > Connected to localhost (127.0.0.1) port 3000 (#0) > > GET /version HTTP/1.1 > > User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8r zlib/1.2.3 > > Host: localhost:3000 > > Accept: application/json > > > < HTTP/1.1 200 OK > < Cache-Control: no-cache > < Content-Type: application/json > < Transfer-Encoding: chunked > < > Connection #0 to host localhost left intact > Closing connection #0 {"Server":"jetty/6.1.26","REST":"0.0.2","OS":"Linux 2.6.32-bpo.5-amd64 amd64","Jersey":"1.4","JVM":"Sun Microsystems Inc. 1.6.0_22-17.1-b03"} > but with compression: > curl -H "Accept: application/json" http://localhost:3000/version -v --compressed > Reponse is: > About to connect() to localhost port 3000 (#0) > Trying 127.0.0.1 ... connected > Connected to localhost (127.0.0.1) port 3000 (#0) > > GET /version HTTP/1.1 > > User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8r zlib/1.2.3 > > Host: localhost:3000 > > Accept-Encoding: deflate, gzip > > Accept: application/json > > > < HTTP/1.1 200 OK > < Cache-Control: no-cache > < Content-Type: application/json > < Content-Encoding: gzip > < Transfer-Encoding: chunked > < > Connection #0 to host localhost left intact > Closing connection #0 > and the stargate server throws the following exception: > 11/07/14 11:21:44 ERROR mortbay.log: /version > java.lang.ClassCastException: org.mortbay.jetty.HttpConnection$Output cannot be cast to org.apache.hadoop.hbase.rest.filter.GZIPResponseStream > at org.apache.hadoop.hbase.rest.filter.GzipFilter.doFilter(GzipFilter.java:54) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212) > at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399) > at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) > at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) > at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > at org.mortbay.jetty.Server.handle(Server.java:326) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) > at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228) > at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) > This is not reproduceable with content type text/plain and gzip. > This is somehow related to https://issues.apache.org/jira/browse/HBASE-3275 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira