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 9024010965 for ; Tue, 4 Feb 2014 19:12:35 +0000 (UTC) Received: (qmail 11281 invoked by uid 500); 4 Feb 2014 19:12:21 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 11137 invoked by uid 500); 4 Feb 2014 19:12:18 -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 10965 invoked by uid 99); 4 Feb 2014 19:12:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Feb 2014 19:12:14 +0000 Date: Tue, 4 Feb 2014 19:12:14 +0000 (UTC) From: "Haohui Mai (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-5182) BlockReaderLocal must allow zero-copy reads only when the DN believes it's valid 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-5182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13891042#comment-13891042 ] Haohui Mai commented on HDFS-5182: ---------------------------------- It looks like to me that passing the file descriptor is a cleaner design: # If the data is shared through mmap(), an I/O error will trigger a SIGBUS on the client side. # It requires taking up the virtual memory space for the client, it could be problematic if the client is running in a container. # From a portability prospective, {{DuplicateHandle}} on Windows can easily pass file descriptors around. I might have missed something. [~cmccabe], can you please elaborate why you prefer choice #1 instead of #2? Thanks. > BlockReaderLocal must allow zero-copy reads only when the DN believes it's valid > --------------------------------------------------------------------------------- > > Key: HDFS-5182 > URL: https://issues.apache.org/jira/browse/HDFS-5182 > Project: Hadoop HDFS > Issue Type: Improvement > Components: hdfs-client > Affects Versions: 3.0.0 > Reporter: Colin Patrick McCabe > Assignee: Colin Patrick McCabe > > BlockReaderLocal must allow zero-copy reads only when the DN believes it's valid. This implies adding a new field to the response to REQUEST_SHORT_CIRCUIT_FDS. We also need some kind of heartbeat from the client to the DN, so that the DN can inform the client when the mapped region is no longer locked into memory. -- This message was sent by Atlassian JIRA (v6.1.5#6160)