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

QTestUtil doesn't correctly set the last command when running "test" commands

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • None
    • None

    Description

      QTestUtil has some logic to execute "test" commands, these are typically "crypto" commands. These "test" commands, aren't valid HiveQL, but can be run in qtests.

      The "crypto" commands are used to setup encryption keys and zones for the TestEncryptedHDFSCliDriver

      When debugging HIVE-15991 I noticed that the command printed out in QTestUtil.failed is incorrect. It's printing out the last Hive command run, even if a more recent "test" command has been run. This can be very misleading when debugging qtest failures.

      The attached patch updates the QTestUtil.executeTestCommand method so that is correctly sets the last executed "test" command.

      Attachments

        1. HIVE-16192.patch
          1 kB
          Sahil Takiar

        Activity

          People

            stakiar Sahil Takiar
            stakiar Sahil Takiar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: