Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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.