Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 933C8200BAC for ; Tue, 11 Oct 2016 19:10:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 924B4160AC3; Tue, 11 Oct 2016 17:10:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E5B27160AE6 for ; Tue, 11 Oct 2016 19:10:21 +0200 (CEST) Received: (qmail 52522 invoked by uid 500); 11 Oct 2016 17:10:21 -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 52410 invoked by uid 99); 11 Oct 2016 17:10:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2016 17:10:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C82E82C4C7E for ; Tue, 11 Oct 2016 17:10:20 +0000 (UTC) Date: Tue, 11 Oct 2016 17:10:20 +0000 (UTC) From: "Guang Yang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-12894) Upgrade Jetty to 9.2.6 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 11 Oct 2016 17:10:22 -0000 [ https://issues.apache.org/jira/browse/HBASE-12894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guang Yang updated HBASE-12894: ------------------------------- Attachment: HBASE-12894_Jetty9_v0.patch First cut of the patch: 1. All tests passed (run REST/THRIFT/HTTP SERVER related multiple times). Some notes: 1. Removed {code}TestGzipFilter::testErrorNotGzipped{code} since there is a behavior change in Jetty 9 - even for 404 Not Found response, if user asked for gzip (Accept-Encoding: gzip), the response would be gzipped. I checked the related RFC and didn't find anything related to this, the behavior change looks ok. 2. This patch is still based on Jackson1, mainly because we have that internally and we don't see any benefit from Jackson2 at least for this effort. The switch from Jackson1 to Jackson2 should be trivial per the upgrade guide, the major part would be to fix all the in-compatibilities if there is any. There is a [thread|http://apache-hbase.679495.n3.nabble.com/Upgrading-Hadoop-dependencies-and-catching-potential-incompatibilities-for-HBase-td4082966.html] discussing this subject, maybe we do it in batch with that effort? [~busbey], please let me know if you feel strong we should go with Jackson2, if that is the case, I can spend some effort to test it with HBase rest. Outstanding questions: 1. Hadoop still brings in Jetty 6 and Jersey 1.x, I am thinking whether we should exclude them from the Hadoop dependencies so as to avoid conflicts? > Upgrade Jetty to 9.2.6 > ---------------------- > > Key: HBASE-12894 > URL: https://issues.apache.org/jira/browse/HBASE-12894 > Project: HBase > Issue Type: Improvement > Components: REST > Affects Versions: 0.98.0 > Reporter: Rick Hallihan > Assignee: Guang Yang > Labels: MicrosoftSupport > Fix For: 2.0.0 > > Attachments: HBASE-12894_Jetty9_v0.patch > > > The Jetty component that is used for the HBase Stargate REST endpoint is version 6.1.26 and is fairly outdated. We recently had a customer inquire about enabling cross-origin resource sharing (CORS) for the REST endpoint and found that this older version does not include the necessary filter or configuration options, highlighted at: http://wiki.eclipse.org/Jetty/Feature/Cross_Origin_Filter > The Jetty project has had significant updates through versions 7, 8 and 9, including a transition to be an Eclipse subproject, so updating to the latest version may be non-trivial. The last update to the Jetty component in https://issues.apache.org/jira/browse/HBASE-3377 was a minor version update and did not require significant work. This update will include a package namespace update so there will likely be a larger number of required changes. -- This message was sent by Atlassian JIRA (v6.3.4#6332)