Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-22599

Query results cache: 733 permissions check is not necessary

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • None
    • None

    Description

      The query results cache initialization makes a call to Utilties.ensurePathIsWritable(), which checks the results cache directory for 733 permissions (default cache dir is

      /tmp/hive/resultscache).

      The 733 permissions (at least the 033 part) are not actually necessary - we actually don't really want the results cache directory to be world-writable, and the subdirectories we create within this one are actually done with 700 perms. So I think the call to Utilties.ensurePathIsWritable() can be removed.

      Attachments

        1. HIVE-22599.1.patch
          1 kB
          Jason Dere

        Activity

          People

            jdere Jason Dere
            jdere Jason Dere
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: