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 2C2EB18BAC for ; Tue, 20 Oct 2015 18:13:28 +0000 (UTC) Received: (qmail 32629 invoked by uid 500); 20 Oct 2015 18:13:27 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 32572 invoked by uid 500); 20 Oct 2015 18:13:27 -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 32551 invoked by uid 99); 20 Oct 2015 18:13:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2015 18:13:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AEEB42C1F5E for ; Tue, 20 Oct 2015 18:13:27 +0000 (UTC) Date: Tue, 20 Oct 2015 18:13:27 +0000 (UTC) From: "James Clampffer (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-9144) Refactor libhdfs into stateful/ephemeral objects 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-9144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14965491#comment-14965491 ] James Clampffer commented on HDFS-9144: --------------------------------------- This looks like a solid plan to me. > Refactor libhdfs into stateful/ephemeral objects > ------------------------------------------------ > > Key: HDFS-9144 > URL: https://issues.apache.org/jira/browse/HDFS-9144 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: hdfs-client > Affects Versions: HDFS-8707 > Reporter: Bob Hansen > Assignee: Bob Hansen > > In discussion for other efforts, we decided that we should separate several concerns: > * A posix-like FileSystem/FileHandle object (stream-based, positional reads) > * An ephemeral ReadOperation object that holds the state for reads-in-progress, which consumes > * An immutable FileInfo object which holds the block map and file size (and other metadata about the file that we assume will not change over the life of the file) -- This message was sent by Atlassian JIRA (v6.3.4#6332)