Hive
  1. Hive
  2. HIVE-1129

Fix Assertion in ExecDriver.execute when assertions are enabled in HADOOP_OPTS

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0
    • Fix Version/s: 0.6.0
    • Component/s: Query Processor
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      I noticed that when running hive CLI, assertions are not enabled, which was causing me some confusion when debugging an issue.

      So, I added the following to my environment:

      export HADOOP_OPTS="-ea -esa"

      This worked, and allowed me to see assertion failures when executing via CLI.

      But then I tried to run a test, and got an assertion failure from the following code in ExecDriver.execute:

      // Turn on speculative execution for reducers
      HiveConf.setVar(job, HiveConf.ConfVars.HADOOPSPECULATIVEEXECREDUCERS,
      HiveConf.getVar(job, HiveConf.ConfVars.HIVESPECULATIVEEXECREDUCERS));

      The assertion says it should be using getBoolVar/setBoolVar instead.

        Activity

        Carl Steinbach made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Carl Steinbach made changes -
        Summary Assertion in ExecDriver.execute when assertions are enabled in HADOOP_OPTS Fix Assertion in ExecDriver.execute when assertions are enabled in HADOOP_OPTS
        Release Note HIVE-1129. Fix assertion in ExecDriver.execute. (John Sichi via zshao)
        Zheng Shao made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Release Note HIVE-1129. Fix assertion in ExecDriver.execute. (John Sichi via zshao)
        Resolution Fixed [ 1 ]
        John Sichi made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Zheng Shao made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        John Sichi made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Affects Version/s 0.5.0 [ 12314156 ]
        Affects Version/s 0.6.0 [ 12314524 ]
        John Sichi made changes -
        Attachment HIVE-1129.1.patch [ 12434739 ]
        John Sichi made changes -
        Field Original Value New Value
        Assignee John Sichi [ jvs ]
        John Sichi created issue -

          People

          • Assignee:
            John Sichi
            Reporter:
            John Sichi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development