Skip to content

Commit

Permalink
HUE-9089 [hive] Add thrift version error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesjean committed Nov 26, 2019
1 parent 947b820 commit 9c90490
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion desktop/core/src/desktop/lib/thrift_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,10 @@ def wrapper(*args, **kwargs):
raise
except Exception as e:
logging.exception("Thrift saw exception (this may be expected).")
raise
if "'client_protocol' is unset" in e.message:
raise StructuredException('OPEN_SESSION', 'Check if the thrift_version configured is supported. Request failed with "%s"' % str(e), data=None, error_code=502)
else:
raise

logging.warn("Out of retries for thrift call: " + attr)
raise
Expand Down

0 comments on commit 9c90490

Please sign in to comment.