Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-5594

Different permission of phoenix-*-queryserver.log from umask

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.15.0, 5.1.0
    • Component/s: None
    • Labels:
      None

      Description

      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:

      $ 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
      

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brfrn169 Toshihiro Suzuki
                Reporter:
                brfrn169 Toshihiro Suzuki
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m