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 D8379200C54 for ; Wed, 29 Mar 2017 00:52:50 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D6F64160B9F; Tue, 28 Mar 2017 22:52:50 +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 32737160B9B for ; Wed, 29 Mar 2017 00:52:50 +0200 (CEST) Received: (qmail 38971 invoked by uid 500); 28 Mar 2017 22:52:44 -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 38950 invoked by uid 99); 28 Mar 2017 22:52:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Mar 2017 22:52:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id D875EC0974 for ; Tue, 28 Mar 2017 22:52:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id a33TemCV3rNl for ; Tue, 28 Mar 2017 22:52:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id BE7275F29A for ; Tue, 28 Mar 2017 22:52:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2CF8EE06B9 for ; Tue, 28 Mar 2017 22:52:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A608625CE8 for ; Tue, 28 Mar 2017 22:52:41 +0000 (UTC) Date: Tue, 28 Mar 2017 22:52:41 +0000 (UTC) From: "Aaron Fabbri (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-14226) S3Guard: ITestDynamoDBMetadataStoreScale is not cleaning up test data MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 28 Mar 2017 22:52:51 -0000 [ https://issues.apache.org/jira/browse/HADOOP-14226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15946121#comment-15946121 ] Aaron Fabbri commented on HADOOP-14226: --------------------------------------- Hi [~liuml07]. I was thinking about this issue, and it seems that DyamoDBMetadataStore should make sure that is has entries for the ancestors of any path. This is an implementation detail of that particular MetadataStore. I was thinking that {{DynamoDBMetadataStore#move()}} needs to do the same thing that {{put()}} does: use a function like {{DynamoDBMetadataStore#fullPathsToPut()}} to make sure it has records for each directory up to the root. This is different than HADOOP-14236, where S3A FS was failing to be consistent in the way it is calling the MetadataStore. In that bug, the fix only supplies intermediate paths that are "inferred" in S3. It correctly does not continue adding paths all the way up to the root. So I think move() also needs to add the directory entries from the root down to the directory being moved. > S3Guard: ITestDynamoDBMetadataStoreScale is not cleaning up test data > --------------------------------------------------------------------- > > Key: HADOOP-14226 > URL: https://issues.apache.org/jira/browse/HADOOP-14226 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs/s3 > Affects Versions: HADOOP-13345 > Reporter: Mingliang Liu > Assignee: Mingliang Liu > Priority: Minor > Attachments: HADOOP-14226-HADOOP-13345.000.patch > > > After running {{ITestDynamoDBMetadataStoreScale}}, the test data is not cleaned up. There is a call to {{clearMetadataStore(ms, count);}} in the finally clause though. The reason is that, the internally called method {{DynamoDBMetadataStore::deleteSubtree()}} is assuming there should be an item for the parent dest path: > {code} > parent=/fake-bucket, child=moved-here, is_dir=true > {code} > In DynamoDBMetadataStore implementation, we assume that _if a path exists, all its ancestors will also exist in the table_. We need to pre-create dest path to maintain this invariant so that test data can be cleaned up successfully. > I think there may be other tests with the same problem. Let's identify/address them separately. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org