Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0E65419C5F for ; Sat, 9 Apr 2016 09:31:26 +0000 (UTC) Received: (qmail 34189 invoked by uid 500); 9 Apr 2016 09:31:25 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 34134 invoked by uid 500); 9 Apr 2016 09:31:25 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 34123 invoked by uid 99); 9 Apr 2016 09:31:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Apr 2016 09:31:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 79CC92C1F58 for ; Sat, 9 Apr 2016 09:31:25 +0000 (UTC) Date: Sat, 9 Apr 2016 09:31:25 +0000 (UTC) From: "Steve Loughran (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-13009) add option for lazy open() on s3a MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-13009?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Loughran updated HADOOP-13009: ------------------------------------ Description:=20 After lazy-seek, I want to add a =E2=80=94very much non-default =E2=80=94la= zy-open option. If you look at a trace of what goes on with object store access, there's us= ually a GET at offset 0 (the {{open()}} command, followed by a {{seek()}}.= =20 If there was a lazy option option, then {{open()}} would set up the instanc= e for reading, but not actually talk to the object store =E2=80=94it'd be t= he first seek or read which would hit the service. You'd eliminate one HTTP= operation from a read sequence, for a faster startup time, especially long= -haul. That's a big break in the normal assumption: if a file isn't there, {{open(= )}} fails, so it'd only work with apps which did open+read, open+seek, or o= pened+positioned readable action back to back. By making it an option peopl= e can experiment to see what happens =E2=80=94though full testing would nee= d to do some fault injection on the first seek/read to see how code handled= late failure. was: After lazy-seekI want to add a =E2=80=94very much non-default =E2=80=94lazy= -open option. If you look at a trace of what goes on with object store access, there's us= ually a GET at offset 0 (the {{open()}} command, followed by a {{seek()}}.= =20 If there was a lazy option option, then {{open()}} would set up the instanc= e for reading, but not actually talk to the object store =E2=80=94it'd be t= he first seek or read which would hit the service. You'd eliminate one HTTP= operation from a read sequence, for a faster startup time, especially long= -haul. That's a big break in the normal assumption: if a file isn't there, {{open(= )}} fails, so it'd only work with apps which did open+read, open+seek, or o= pened+positioned readable action back to back. By making it an option peopl= e can experiment to see what happens =E2=80=94though full testing would nee= d to do some fault injection on the first seek/read to see how code handled= late failure. > add option for lazy open() on s3a > --------------------------------- > > Key: HADOOP-13009 > URL: https://issues.apache.org/jira/browse/HADOOP-13009 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs/s3 > Affects Versions: 2.8.0 > Reporter: Steve Loughran > > After lazy-seek, I want to add a =E2=80=94very much non-default =E2=80=94= lazy-open option. > If you look at a trace of what goes on with object store access, there's = usually a GET at offset 0 (the {{open()}} command, followed by a {{seek()}}= .=20 > If there was a lazy option option, then {{open()}} would set up the insta= nce for reading, but not actually talk to the object store =E2=80=94it'd be= the first seek or read which would hit the service. You'd eliminate one HT= TP operation from a read sequence, for a faster startup time, especially lo= ng-haul. > That's a big break in the normal assumption: if a file isn't there, {{ope= n()}} fails, so it'd only work with apps which did open+read, open+seek, or= opened+positioned readable action back to back. By making it an option peo= ple can experiment to see what happens =E2=80=94though full testing would n= eed to do some fault injection on the first seek/read to see how code handl= ed late failure. -- This message was sent by Atlassian JIRA (v6.3.4#6332)