From dev-return-58864-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Mon Dec 2 18:52:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 48ADC18064E for ; Mon, 2 Dec 2019 19:52:02 +0100 (CET) Received: (qmail 85509 invoked by uid 500); 2 Dec 2019 18:52:01 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 85496 invoked by uid 99); 2 Dec 2019 18:52:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Dec 2019 18:52:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id ADCF4E0E2E for ; Mon, 2 Dec 2019 18:52:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 194267803DB for ; Mon, 2 Dec 2019 18:52:00 +0000 (UTC) Date: Mon, 2 Dec 2019 18:52:00 +0000 (UTC) From: "Chinmay Kulkarni (Jira)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-5594) Different permission of phoenix-*-queryserver.log from umask MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PHOENIX-5594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chinmay Kulkarni updated PHOENIX-5594: -------------------------------------- Fix Version/s: 5.1.0 > Different permission of phoenix-*-queryserver.log from umask > ------------------------------------------------------------ > > Key: PHOENIX-5594 > URL: https://issues.apache.org/jira/browse/PHOENIX-5594 > Project: Phoenix > Issue Type: Bug > Reporter: Toshihiro Suzuki > Assignee: Toshihiro Suzuki > Priority: Major > Fix For: 4.15.0, 5.1.0 > > Time Spent: 20m > Remaining Estimate: 0h > > The permission of phoenix-*-queryserver.log is different from umask we set. > For example, when we set umask to 077, the permission of phoenix-*-queryserver.log should be 600, but it's 666: > {code} > $ umask 077 > $ /bin/queryserver.py start > starting Query Server, logging to /var/log/hbase/phoenix-hbase-queryserver.log > $ ll /var/log/hbase/phoenix* > -rw-rw-rw- 1 hbase hadoop 6181 Nov 27 13:52 phoenix-hbase-queryserver.log > -rw------- 1 hbase hadoop 1358 Nov 27 13:52 phoenix-hbase-queryserver.out > {code} > It looks like the permission of phoenix-*-queryserver.out is correct (600). > queryserver.py opens QueryServer process as a sub process but it looks like the umask is not inherited. I think we need to inherit the umask to the sub process. -- This message was sent by Atlassian Jira (v8.3.4#803005)