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

Add negative test case to modify a non-existent config value when hive security authorization is enabled.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • None
    • None

    Description

      We need to have a test case to cover the following scenario when hive security authorization is enabled:

      set hive.exec.reduce.max=1;
      Query returned non-zero code: 1, cause: hive configuration hive.exec.reduce.max does not exists.
      

      This is important for ease-of-use and we need to prevent future code change/regression which might convert the above test case to throw a permission denied error.
      i.e, the below output is not desirable :

      set hive.exec.reduce.max=1;
      Error: Error while processing statement: Cannot modify hive.exec.reduce.max at runtime. It is not in list of params that are allowed to be modified at runtime (state=42000,code=1)
      

      Attachments

        1. HIVE-10290.1.patch
          1 kB
          Hari Sankar Sivarama Subramaniyan

        Activity

          People

            hsubramaniyan Hari Sankar Sivarama Subramaniyan
            hsubramaniyan Hari Sankar Sivarama Subramaniyan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: