mirror of
https://github.com/apache/impala.git
synced 2026-01-29 03:00:27 -05:00
The semicolon was in the wrong place in one of the test queries and the failure was swallowed silently. This meant that one fewer prompt was displayed than expected. This didn't cause a test failure because the prompt regex also matched the "Connected to host:port" message printed in the shell preamble. I'm unsure why this would cause the test failure but my best theory is that in the failure case, the "Connected" and prompt messages are both buffered when we evaluate the first prompt regex, and the regex swallows up the whole input, rather than just the first instance. Testing: Tightened up the prompt regex and checked that the query actually executed successfully. With these improvements, the broken query text caused a test failure. I looped the test for a while to make sure it was robust. Added a couple of related test cases to make sure we aren't losing coverage. Change-Id: If917bbc8e87b83c188b6d5e1acad912892b8c6fe Reviewed-on: http://gerrit.cloudera.org:8080/9441 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: Impala Public Jenkins
22 KiB
Executable File
22 KiB
Executable File