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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.13.1, 0.14.0
    • None
    • HiveServer2, UDF
    • 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

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

              Dates

                Created:
                Updated: