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 7E157200B84 for ; Tue, 20 Sep 2016 22:39:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7CA77160AC5; Tue, 20 Sep 2016 20:39:22 +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 C1676160AC0 for ; Tue, 20 Sep 2016 22:39:21 +0200 (CEST) Received: (qmail 60703 invoked by uid 500); 20 Sep 2016 20:39:20 -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 60692 invoked by uid 99); 20 Sep 2016 20:39:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Sep 2016 20:39:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A0A2F2C2A65 for ; Tue, 20 Sep 2016 20:39:20 +0000 (UTC) Date: Tue, 20 Sep 2016 20:39:20 +0000 (UTC) From: "Mingliang Liu (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-13452) S3Guard: Implement access policy for intra-client consistency with in-memory metadata store. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 20 Sep 2016 20:39:22 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15507731#comment-15507731 ] Mingliang Liu commented on HADOOP-13452: ---------------------------------------- {quote} I do that. This code looks the same as mine, except I do not override load factor to 1.0 (which saves space at expense of runtime). {quote} The point I was making is about the access order of the LinkedHashMap. {{super(initialCapacity);}} by default, is using the insert order. {{super(maxEntries + 1, 1.0f, true);}} along with the overridden {{removeEldestEntry()}} will just make a LruCache. Sorry I should not have mentioned {{removeEldestEntry()}} as your patch is pretty good regarding that. If your motivation is about flexibility, I think it makes sense. Thanks. > S3Guard: Implement access policy for intra-client consistency with in-memory metadata store. > -------------------------------------------------------------------------------------------- > > Key: HADOOP-13452 > URL: https://issues.apache.org/jira/browse/HADOOP-13452 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs/s3 > Reporter: Chris Nauroth > Assignee: Aaron Fabbri > Attachments: HADOOP-13452.001.patch > > > Implement an S3A access policy based on an in-memory metadata store. This can provide consistency within the same client without needing to integrate with an external system. -- 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