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

Print Number of Locks Acquired

    XMLWordPrintableJSON

Details

    Description

      The number of locks acquired by a query can greatly influence the performance and stability of the system, especially for ZK locks. Please add INFO level logging with the number of locks each query obtains.

      Log here:
      https://github.com/apache/hive/blob/3963c729fabf90009cb67d277d40fe5913936358/ql/src/java/org/apache/hadoop/hive/ql/Driver.java#L1670-L1672

      A list of acquired locks will be stored in the org.apache.hadoop.hive.ql.Context object and can be retrieved via org.apache.hadoop.hive.ql.Context#getHiveLocks.

      https://github.com/apache/hive/blob/758ff449099065a84c46d63f9418201c8a6731b1/ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveTxnManager.java#L115-L127

      Attachments

        1. HIVE-20797.6.patch
          0.9 kB
          David Mollitor
        2. HIVE-20797.5.patch
          1 kB
          David Mollitor
        3. HIVE-20797.4.patch
          1 kB
          David Mollitor
        4. HIVE-20797.3.patch
          1 kB
          David Mollitor
        5. HIVE-20797.2.patch
          1 kB
          David Mollitor
        6. HIVE-20797.1.patch
          2 kB
          David Mollitor

        Activity

          People

            belugabehr David Mollitor
            belugabehr David Mollitor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: