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

CREATE TEMPORARY FUNCTION hangs trying to acquire lock

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.13.1
    • Fix Version/s: 1.1.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      CDH5.2.1

      Description

      If there are SHARED locks on default database. CREATE TEMPORARY FUNCTION will hang until the operation completes or until lock acquisition timeout is reached.

      == General Reproduction Steps ==

      1. Create a table in default.

      2. Do a query against that table that last a long time. I achieved this by creating a UDF that does sleep for 100 minutes.

      3. Try to create temporary function in another Hive CLI session. This should hang waiting for a ZK exclusive lock on default.

      == Script Details ==

      • Works only out of box on CDH with parcels. If you are not using parcels then you need to modify paths in builder.sh.

        Attachments

        1. repro.tgz
          1 kB
          Johndee Burks

          Issue Links

            Activity

              People

              • Assignee:
                ctang Chaoyu Tang
                Reporter:
                johndee Johndee Burks
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: