Skip to content

Commit

Permalink
vdk-impala: enhance memory error handling (#2938)
Browse files Browse the repository at this point in the history
Add another exception type to be handled by the Impala Memory Handler.

Signed-off-by: Dako Dakov <[email protected]>
  • Loading branch information
dakodakov authored Nov 23, 2023
1 parent 6215400 commit 3b7c9ae
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ def handle_memory_error(self, exception, recovery_cursor):
exception,
classname_with_package="impala.error.OperationalError",
exception_message_matcher_regex=".*Memory limit exceeded:.*",
) or errors.exception_matches(
exception,
classname_with_package="impala.error.HiveServer2Error",
exception_message_matcher_regex=".*Memory limit exceeded:.*",
):
# We are going to try to increase the memory limits and see if the query passes
# But we won't do anything if the sql statement itself sets a memory limit
Expand Down

0 comments on commit 3b7c9ae

Please sign in to comment.