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

permanent functions' ClassLoader should be global instead of per-session

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.14.0, 0.13.1
    • Fix Version/s: None
    • Component/s: HiveServer2, UDF
    • Labels:
      None

      Description

      FunctionRegistry.mFunctions is static. That means that in HS2 case, all users will share the same UDF class object from mFunctions ,which lead to share the same classloader that load this class.

      First,this will make the per-session classloader useless.Because only the first classLoader will be used to initailize the instances of the permanent UDF class.
      Second, it's will cause class not found exception,when the classLoader created by the first session has been closed before load all the classes that need.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nemon Nemon Lou
              • Votes:
                2 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: