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 7366D200B76 for ; Tue, 16 Aug 2016 01:38:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 71F2D160AB8; Mon, 15 Aug 2016 23:38: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 B680F160AA7 for ; Tue, 16 Aug 2016 01:38:21 +0200 (CEST) Received: (qmail 51975 invoked by uid 500); 15 Aug 2016 23:38: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 51957 invoked by uid 99); 15 Aug 2016 23:38:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Aug 2016 23:38:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9BFEC2C02A6 for ; Mon, 15 Aug 2016 23:38:20 +0000 (UTC) Date: Mon, 15 Aug 2016 23:38:20 +0000 (UTC) From: "Arun Suresh (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-13437) KMS should reload whitelist and default key ACLs when hot-reloading MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 15 Aug 2016 23:38:22 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15421885#comment-15421885 ] Arun Suresh commented on HADOOP-13437: -------------------------------------- So, the original intent was based on the assumption that defaults and whitelists should not be changed once KMS is started.. I agree it should have been doc-ed. (On startup, all KeyOpType defaults and whitelists would be specified.. and no new defaults and whitelists would be added... which is reason for the {{containsKey}}) The {{kms-acls.xml}} hot reloading was meant to be used in the event keys and associated users/groups were added/removed, not for modifying the defaults and whitelists. I agree hot reloading of these would make things more flexible though. I guess we should either: # move defaults and whitelists to {{kms-site.xml}} and thereby ensure these are unambiguously NOT hot reloadable. # as per this JIRA remove the restriction and allow everything to be hot reloadable. Thoughts? > KMS should reload whitelist and default key ACLs when hot-reloading > ------------------------------------------------------------------- > > Key: HADOOP-13437 > URL: https://issues.apache.org/jira/browse/HADOOP-13437 > Project: Hadoop Common > Issue Type: Bug > Components: kms > Affects Versions: 2.6.0 > Reporter: Xiao Chen > Assignee: Xiao Chen > Attachments: HADOOP-13437.01.patch, HADOOP-13437.02.patch, HADOOP-13437.03.patch, HADOOP-13437.04.patch, HADOOP-13437.05.patch > > > When hot-reloading, {{KMSACLs#setKeyACLs}} ignores whitelist and default key entries if they're present in memory. > We should reload them, hot-reload and cold-start should not have any difference in behavior. > Credit to [~dilaver] for finding this. -- 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