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 C0344200CB3 for ; Mon, 26 Jun 2017 17:19:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BF1AC160BF5; Mon, 26 Jun 2017 15:19:05 +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 7C515160BDE for ; Mon, 26 Jun 2017 17:19:04 +0200 (CEST) Received: (qmail 36230 invoked by uid 500); 26 Jun 2017 15:19: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 36219 invoked by uid 99); 26 Jun 2017 15:19:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jun 2017 15:19:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 1E68319202E for ; Mon, 26 Jun 2017 15:19:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id XnRpMqxQECYM for ; Mon, 26 Jun 2017 15:19:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 5A2C35FC4D for ; Mon, 26 Jun 2017 15:19: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 E549AE0D54 for ; Mon, 26 Jun 2017 15:19: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 42C3724109 for ; Mon, 26 Jun 2017 15:19:00 +0000 (UTC) Date: Mon, 26 Jun 2017 15:19:00 +0000 (UTC) From: "Thomas (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: Mon, 26 Jun 2017 15:19:05 -0000 [ https://issues.apache.org/jira/browse/HADOOP-14535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16063246#comment-16063246 ] Thomas commented on HADOOP-14535: --------------------------------- Thanks for the feedback. I will do the following and resubmit the patch in a few days: 1) Add logic so reverse seek followed by sequential read performs very well. I will add internal buffering and remove the dependency on BufferedFSInputStream so the read buffer can grow back to the "fs.azure.read.request.size" (default 4 MB) after a reverse seek. 2) Add tests to ensure functional and performance coverage of seek, read, and skip. 3) If required for testing, I will add metrics/instrumentation. > 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