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 1F570200BAE for ; Fri, 23 Sep 2016 02:05:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1C0EE160AE3; Fri, 23 Sep 2016 00:05:23 +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 63EA6160AAD for ; Fri, 23 Sep 2016 02:05:22 +0200 (CEST) Received: (qmail 69801 invoked by uid 500); 23 Sep 2016 00:05:21 -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 69779 invoked by uid 99); 23 Sep 2016 00:05:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2016 00:05:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 37AA82C2A63 for ; Fri, 23 Sep 2016 00:05:21 +0000 (UTC) Date: Fri, 23 Sep 2016 00:05:21 +0000 (UTC) From: "Xiao Chen (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-13317) Add logs to KMS servier-side to improve supportability MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 23 Sep 2016 00:05:23 -0000 [ https://issues.apache.org/jira/browse/HADOOP-13317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15514873#comment-15514873 ] Xiao Chen commented on HADOOP-13317: ------------------------------------ Thanks Suraj for revving. Overall looks good. Some more comments: - From my previous comment: for createKey, is it safe to put cipher in the logs? - Propose to log all params in debug log. If we want to look at debug log, things are pretty much not what we thought to be. So more information won't harm. - Sorry I may not be clear in {{when the underlying provider throws an exception, it just propagates into tomcat and we ends up seeing nothing in the KMS log}}. Take {{createKey}} for example. If {{provider.createKey}} or {{provider.flush}} throws, would we see anything in KMS log? Last time I ended up adding a try-catch to the entire method, not sure if there's a better way. You can try it out by hard-coding that block to throw and check the log. Another advantage is we can also add a trace level exit log, symmetric to the entering one. > Add logs to KMS servier-side to improve supportability > ------------------------------------------------------ > > Key: HADOOP-13317 > URL: https://issues.apache.org/jira/browse/HADOOP-13317 > Project: Hadoop Common > Issue Type: Improvement > Components: kms > Reporter: Xiao Chen > Assignee: Suraj Acharya > Priority: Minor > Labels: supportability > Attachments: HADOOP-13317-1.patch, HADOOP-13317-2.patch, HADOOP-13317-3.patch, HADOOP-13317.patch > > > [KMS.java|https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-kms/src/main/java/org/apache/hadoop/crypto/key/kms/server/KMS.java] is the main class that serves KMS http requests. There're currently no logs at all, making trouble shooting difficult. -- 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