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

Docs Are Incorrect for "hive.lock.sleep.between.retries"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.4.0, 3.0.0
    • None
    • Documentation
    • None

    Description

      https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-Locking

      Default Value: 60
      Added In: Hive 0.7.0 with HIVE-1293
      The sleep time (in seconds) between various retries.

      Actually, it's the sleep time (don't specify a unit) and the default value is 60s. If no unit is specified, it would be 60 milliseconds.

      ZooKeeperHiveLockManager.java
        public void refresh() {
          HiveConf conf = ctx.getConf();
          sleepTime = conf.getTimeVar(
              HiveConf.ConfVars.HIVE_LOCK_SLEEP_BETWEEN_RETRIES, TimeUnit.MILLISECONDS);
          numRetriesForLock = conf.getIntVar(HiveConf.ConfVars.HIVE_LOCK_NUMRETRIES);
          numRetriesForUnLock = conf.getIntVar(HiveConf.ConfVars.HIVE_UNLOCK_NUMRETRIES);
        }
       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: