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 615AD200BA6 for ; Tue, 4 Oct 2016 01:19:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6012F160AEC; Mon, 3 Oct 2016 23:19: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 A5718160ADC for ; Tue, 4 Oct 2016 01:19:21 +0200 (CEST) Received: (qmail 88469 invoked by uid 500); 3 Oct 2016 23:19:20 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 88434 invoked by uid 99); 3 Oct 2016 23:19:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2016 23:19:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7A2152C0B04 for ; Mon, 3 Oct 2016 23:19:20 +0000 (UTC) Date: Mon, 3 Oct 2016 23:19:20 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-10950) Add unit tests to verify ACLs in safemode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 03 Oct 2016 23:19:22 -0000 [ https://issues.apache.org/jira/browse/HDFS-10950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15543723#comment-15543723 ] Chris Nauroth commented on HDFS-10950: -------------------------------------- Hello [~xiaobingo]. Do you think this is already covered sufficiently in {{TestSafeMode#testOperationsWhileInSafeMode}}? {code} runFsFun("modifyAclEntries while in SM", new FSRun() { @Override public void run(FileSystem fs) throws IOException { fs.modifyAclEntries(file1, Lists.newArrayList()); }}); runFsFun("removeAclEntries while in SM", new FSRun() { @Override public void run(FileSystem fs) throws IOException { fs.removeAclEntries(file1, Lists.newArrayList()); }}); runFsFun("removeDefaultAcl while in SM", new FSRun() { @Override public void run(FileSystem fs) throws IOException { fs.removeDefaultAcl(file1); }}); runFsFun("removeAcl while in SM", new FSRun() { @Override public void run(FileSystem fs) throws IOException { fs.removeAcl(file1); }}); runFsFun("setAcl while in SM", new FSRun() { @Override public void run(FileSystem fs) throws IOException { fs.setAcl(file1, Lists.newArrayList()); }}); ... try { fs.getAclStatus(file1); } catch (IOException ioe) { fail("getAclStatus failed while in SM"); } {code} > Add unit tests to verify ACLs in safemode > ----------------------------------------- > > Key: HDFS-10950 > URL: https://issues.apache.org/jira/browse/HDFS-10950 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: fs, test > Reporter: Xiaobing Zhou > Assignee: Xiaobing Zhou > > This proposes adding unit tests to validate that getting Acls works when namende is in safemode, while setting Acls fails. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org