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 63035200BE4 for ; Wed, 16 Nov 2016 03:27:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 61BCD160B03; Wed, 16 Nov 2016 02:27:00 +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 AF03E160B05 for ; Wed, 16 Nov 2016 03:26:59 +0100 (CET) Received: (qmail 21514 invoked by uid 500); 16 Nov 2016 02:26:58 -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 21476 invoked by uid 99); 16 Nov 2016 02:26:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2016 02:26:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9B1D52C4C76 for ; Wed, 16 Nov 2016 02:26:58 +0000 (UTC) Date: Wed, 16 Nov 2016 02:26:58 +0000 (UTC) From: "Mingliang Liu (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-13449) S3Guard: Implement DynamoDBMetadataStore. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 16 Nov 2016 02:27:00 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15669124#comment-15669124 ] Mingliang Liu commented on HADOOP-13449: ---------------------------------------- Thanks for the ideas. Now we're getting close to the depth. {quote} The client has to check S3. {quote} I see the difference that we have now. After import, I was treating the DDB as the consistent store and authoritative by default. Suppose we have /a, /a/b, /a/c, for delete operations, we delete /a/ first; if other thread/process comes to list /a, it returns null (because /a is not there) indicating the subtree does not exist, though /a/b/ and /a/c/ are there. We may need to cover corner cases. Another question is that, if another process bypasses S3Guard and puts a new entry to /a/d/, do we have to make sure /a/d be added to the store by checking S3? I was thinking not; S3Guard guards those who buy it. My previous thoughts: scan was not acceptable. If we should use scan; we have to redesign the DDB schema. Creating the parent path while creating the child is not efficient; for putting X files in the same directory, we don't want to check X times ancestors which bring heavy overhead. For empty directories, I didn't have to go to S3 as we may need time to get latest state. There must be feasible solutions/workarounds for DDBMetadataStore implementation if we agree on the list contract; I'll post my ideas later. Now I have to think about the difference on the "contract" for list. As to the concern of not strictly having parent directories pre-created, is importing the only one? Cluster not being started is OK; DDB persists the data. We can import data via tools (e.g. command line) first on Day 1. > S3Guard: Implement DynamoDBMetadataStore. > ----------------------------------------- > > Key: HADOOP-13449 > URL: https://issues.apache.org/jira/browse/HADOOP-13449 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs/s3 > Reporter: Chris Nauroth > Assignee: Mingliang Liu > Attachments: HADOOP-13449-HADOOP-13345.000.patch, HADOOP-13449-HADOOP-13345.001.patch, HADOOP-13449-HADOOP-13345.002.patch, HADOOP-13449-HADOOP-13345.003.patch, HADOOP-13449-HADOOP-13345.004.patch > > > Provide an implementation of the metadata store backed by DynamoDB. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org