You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2019/12/04 17:24:00 UTC

[jira] [Commented] (PHOENIX-5594) Different permission of phoenix-*-queryserver.log from umask

    [ https://issues.apache.org/jira/browse/PHOENIX-5594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16988015#comment-16988015 ] 

Hudson commented on PHOENIX-5594:
---------------------------------

FAILURE: Integrated in Jenkins build PreCommit-PHOENIX-Build #3167 (See [https://builds.apache.org/job/PreCommit-PHOENIX-Build/3167/])
PHOENIX-5594 Different permission of phoenix-*-queryserver.log from (ankit: rev c8c31365fa67b7deb293b526ef0c96a7e878adbd)
* (edit) bin/queryserver.py


> 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
> $ <phenix-home>/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)