Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 8213818612 for ; Wed, 17 Feb 2016 13:50:19 +0000 (UTC) Received: (qmail 83395 invoked by uid 500); 17 Feb 2016 13:50:19 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 83348 invoked by uid 500); 17 Feb 2016 13:50:19 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 83337 invoked by uid 99); 17 Feb 2016 13:50:19 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2016 13:50:19 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EDB2D2C1F6C for ; Wed, 17 Feb 2016 13:50:18 +0000 (UTC) Date: Wed, 17 Feb 2016 13:50:18 +0000 (UTC) From: "Steve Loughran (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-9565) Add a Blobstore interface to add to blobstore FileSystems 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/HADOOP-9565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15150522#comment-15150522 ] Steve Loughran commented on HADOOP-9565: ---------------------------------------- I've been thinking about this, and wondering if we could have better extensibility by providing a lookup operation where you asked for the specific method and got back an enum of values: {code} getOperationSemantics("create") = // HDDA change is visible, operation with check for existence is atomic getOperationSemantics("create") = // s3 getOperationSemantics("append") = // HDFS: supported but no consistency guarantees getOperationSemantics("append") = <> // s3 doesn't support append getOperationSemantics("delete") = // HDFS: supported but no consistency guarantees getOperationSemantics("delete") = // maybe async getOperationSemantics("rename") = // hdfs getOperationSemantics("rename") = // s3 getOperationSemantics("OutputStream.close") = // s3 getOperationSemantics("OutputStream.close") = // HDFS getOperationSemantics("OutputStream.write") = // HDFS getOperationSemantics("OutputStream.write") = // s3 getOperationSemantics("OutputStream.flush") = // HDFS getOperationSemantics("OutputStream.flush") = // s3 won't fail on the cal, but it doesn't do anything {code} I know it's potentially much more complex, especially for clients, but it does expose all the information apps may possibly need. Example: dfsclient & can look for rename being 0_1 and !CLIENT_SIDE; if not, it bypasses rename and writes direct. another example, some code trying to use create(overwrite=false) for locking could check and fail if "create" wasn't atomic/persistent (i.e. check & create atomic, result visible to all) > Add a Blobstore interface to add to blobstore FileSystems > --------------------------------------------------------- > > Key: HADOOP-9565 > URL: https://issues.apache.org/jira/browse/HADOOP-9565 > Project: Hadoop Common > Issue Type: Improvement > Components: fs, fs/s3, fs/swift > Affects Versions: 2.6.0 > Reporter: Steve Loughran > Assignee: Thomas Demoor > Labels: BB2015-05-TBR > Attachments: HADOOP-9565-001.patch, HADOOP-9565-002.patch, HADOOP-9565-003.patch, HADOOP-9565-004.patch, HADOOP-9565-005.patch > > > We can make the fact that some {{FileSystem}} implementations are really blobstores, with different atomicity and consistency guarantees, by adding a {{Blobstore}} interface to add to them. > This could also be a place to add a {{Copy(Path,Path)}} method, assuming that all blobstores implement at server-side copy operation as a substitute for rename. -- This message was sent by Atlassian JIRA (v6.3.4#6332)