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 3850D200CB0 for ; Fri, 23 Jun 2017 15:51:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 36A53160BD4; Fri, 23 Jun 2017 13:51:10 +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 7DD48160BCA for ; Fri, 23 Jun 2017 15:51:09 +0200 (CEST) Received: (qmail 49290 invoked by uid 500); 23 Jun 2017 13:51:03 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 49279 invoked by uid 99); 23 Jun 2017 13:51:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jun 2017 13:51:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 21563C1431 for ; Fri, 23 Jun 2017 13:51:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id iPLxHxnuXENQ for ; Fri, 23 Jun 2017 13:51:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 96A445FB71 for ; Fri, 23 Jun 2017 13:51:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DA5DBE0DAA for ; Fri, 23 Jun 2017 13:51:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 55041240B8 for ; Fri, 23 Jun 2017 13:51:00 +0000 (UTC) Date: Fri, 23 Jun 2017 13:51:00 +0000 (UTC) From: "Steve Loughran (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-14535) Support for random access and seek of block blobs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 23 Jun 2017 13:51:10 -0000 [ https://issues.apache.org/jira/browse/HADOOP-14535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16060926#comment-16060926 ] Steve Loughran commented on HADOOP-14535: ----------------------------------------- in HADOOP-14553 I've added a new test which can create a large file and then do seeks around it. I'd like that test to be used as the regression test here. > Support for random access and seek of block blobs > ------------------------------------------------- > > Key: HADOOP-14535 > URL: https://issues.apache.org/jira/browse/HADOOP-14535 > Project: Hadoop Common > Issue Type: Improvement > Components: fs/azure > Reporter: Thomas > Assignee: Thomas > Attachments: 0001-Random-access-and-seek-imporvements-to-azure-file-system.patch, 0003-Random-access-and-seek-imporvements-to-azure-file-system.patch, 0004-Random-access-and-seek-imporvements-to-azure-file-system.patch > > > This change adds a seek-able stream for reading block blobs to the wasb:// file system. > If seek() is not used or if only forward seek() is used, the behavior of read() is unchanged. > That is, the stream is optimized for sequential reads by reading chunks (over the network) in > the size specified by "fs.azure.read.request.size" (default is 4 megabytes). > If reverse seek() is used, the behavior of read() changes in favor of reading the actual number > of bytes requested in the call to read(), with some constraints. If the size requested is smaller > than 16 kilobytes and cannot be satisfied by the internal buffer, the network read will be 16 > kilobytes. If the size requested is greater than 4 megabytes, it will be satisfied by sequential > 4 megabyte reads over the network. > This change improves the performance of FSInputStream.seek() by not closing and re-opening the > stream, which for block blobs also involves a network operation to read the blob metadata. Now > NativeAzureFsInputStream.seek() checks if the stream is seek-able and moves the read position. > [^attachment-name.zip] -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org