Xuebin Su has uploaded a new patch set (#8). ( 
http://gerrit.cloudera.org:8080/21587 )

Change subject: IMPALA-13115: Add query id to error messages
......................................................................

IMPALA-13115: Add query id to error messages

This patch adds the query id to the error messages in both

- the result of the `get_log()` RPC, and
- the error message in an RPC response

before they are returned to the client, so that the users can easily
figure out the errored queries on the client side.

To achieve this, the query id of the thread debug info is set in the
RPC handler method, and is retrieved from the thread debug info each
time the error reporting function or `get_log()` gets called.

Due to the change of the error message format, some checks in the
impala-shell.py are adapted to keep them valid.

Testing:
- Added a helper function `error_msg_expected()` to check whether an
  error message is expected. It is stricter than only using the `in`
  operator.
- End-to-end test cases are adapted using `error_msg_expected()` to
  match the new error message format.
- `ImpalaBeeswaxException`, which is used in tests only, is simplified
  so that it has the same error message format as the exceptions for
  HS2.
- Added an assertion to the case of killing and restarting a worker
  in the custom cluster test to ensure that the query id is in
  the error message in the client log retrieved with `get_log()`.

Change-Id: I67e659681e36162cad1d9684189106f8eedbf092
---
M be/src/service/impala-beeswax-server.cc
M be/src/service/impala-hs2-server.cc
M be/src/service/impala-server.cc
M be/src/service/impala-server.h
M shell/impala_shell.py
M testdata/workloads/functional-query/queries/QueryTest/acid-insert-fail.test
M testdata/workloads/functional-query/queries/QueryTest/exprs.test
M tests/beeswax/impala_beeswax.py
M tests/common/impala_test_suite.py
M tests/common/test_result_verifier.py
M tests/custom_cluster/test_coordinators.py
M tests/custom_cluster/test_executor_groups.py
M tests/custom_cluster/test_kudu.py
M tests/custom_cluster/test_process_failures.py
M tests/custom_cluster/test_sys_db.py
M tests/metadata/test_stale_metadata.py
M tests/query_test/test_iceberg.py
M tests/shell/test_shell_commandline.py
M tests/shell/test_shell_interactive.py
M tests/shell/util.py
20 files changed, 190 insertions(+), 51 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/87/21587/8
--
To view, visit http://gerrit.cloudera.org:8080/21587
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I67e659681e36162cad1d9684189106f8eedbf092
Gerrit-Change-Number: 21587
Gerrit-PatchSet: 8
Gerrit-Owner: Xuebin Su <x...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Gerrit-Reviewer: Michael Smith <michael.sm...@cloudera.com>
Gerrit-Reviewer: Quanlong Huang <huangquanl...@gmail.com>
Gerrit-Reviewer: Xuebin Su <x...@cloudera.com>

Reply via email to