Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 4378510BBD for ; Thu, 24 Oct 2013 23:43:02 +0000 (UTC) Received: (qmail 70323 invoked by uid 500); 24 Oct 2013 23:43:02 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 70295 invoked by uid 500); 24 Oct 2013 23:43:02 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 70286 invoked by uid 99); 24 Oct 2013 23:43:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Oct 2013 23:43:01 +0000 Date: Thu, 24 Oct 2013 23:43:01 +0000 (UTC) From: "Brandon Li (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-5171) NFS should create input stream for a file and try to share it with multiple read requests MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-5171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13804808#comment-13804808 ] Brandon Li commented on HDFS-5171: ---------------------------------- I've committed the patch. Thank you, Haohui, for the contribution! > NFS should create input stream for a file and try to share it with multiple read requests > ----------------------------------------------------------------------------------------- > > Key: HDFS-5171 > URL: https://issues.apache.org/jira/browse/HDFS-5171 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: nfs > Reporter: Brandon Li > Assignee: Haohui Mai > Attachments: HDFS-5171.000.patch, HDFS-5171.001.patch > > > Currently, NFS creates an input steam for each read request and closes it after the request is served. With lots of read request, the overhead is significant. > Like for write request, NFS should create input stream for a file and try to share it with multiple read requests. The stream can be closed if there is no read request for a certain amount of time (e.g., 10 sec). -- This message was sent by Atlassian JIRA (v6.1#6144)