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

Check DDL's writetype in DummyTxnManager

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 0.13.0, 0.13.1
    • None
    • Locking
    • hive0.13.1

    Description

      The patch of HIVE-6734 added some DDL writetypes and checked DDL writetype in DbTxnManager.java.
      We use DummyTxnManager as the default value of hive.txn.manager in hive-site.xml. We noticed that the operation of CREATE TEMPORARY FUNCTION has a DLL_NO_LOCK writetype but it requires a EXCLUSIVE lock. If we try to create a temporary function while there's a SELECT is processing at the same database, then the console will print 'conflicting lock present for default mode EXCLUSIVE' and the CREATE TEMPORARY FUNCTION operation won't get the lock until the SELECT is done. Maybe it's a good idea to check the DDL's writetype in DummyTxnManager too.

      Attachments

        1. HIVE-8192.6.patch
          7 kB
          Wan Chang
        2. HIVE-8192.5.patch
          5 kB
          Wan Chang
        3. HIVE-8192.5.patch
          5 kB
          Wan Chang
        4. HIVE-8192.4.patch
          5 kB
          Wan Chang
        5. HIVE-8192.3.patch
          4 kB
          Wan Chang
        6. HIVE-8192.2.patch
          4 kB
          Wan Chang

        Issue Links

          Activity

            People

              wanchang Wan Chang
              wanchang Wan Chang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: