[ 
https://issues.apache.org/jira/browse/IMPALA-14172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17982808#comment-17982808
 ] 

Riza Suminto commented on IMPALA-14172:
---------------------------------------

This AttributeError is probably safe to ignore since it came up from Impyla 
(the test client).

> test_cancellation.py sees "'NoneType' object has no attribute 'columns'"
> ------------------------------------------------------------------------
>
>                 Key: IMPALA-14172
>                 URL: https://issues.apache.org/jira/browse/IMPALA-14172
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Backend
>    Affects Versions: Impala 5.0.0
>            Reporter: Joe McDonnell
>            Priority: Critical
>              Labels: broken-build, flaky
>
> TestCancellationParallel.test_cancel_select hit this error:
> {noformat}
> query_test/test_cancellation.py:276: in test_cancel_select
>     self.execute_cancel_test(vector)
> query_test/test_cancellation.py:191: in execute_cancel_test
>     use_kill_query_statement=vector.get_value('use_kill_query_statement'))
> util/cancel_util.py:200: in cancel_query_and_validate_state
>     thread, cancel_delay, join_before_close, use_kill_query_statement)
> util/cancel_util.py:267: in __run_cancel_query_and_validate_state
>     and not join_before_close), str_fetch_error
> E   AssertionError: Exception in fetch_results: 'NoneType' object has no 
> attribute 'columns'
> E   Traceback (most recent call last):
> E     File "/data0/jenkins/Impala/tests/util/cancel_util.py", line 137, in run
> E       result = self.client.fetch(self.query, self.handle)
> E     File "/data0/jenkins/Impala/tests/common/impala_connection.py", line 
> 1099, in fetch
> E       return self.__get_operation(operation_handle).fetch(max_rows=max_rows)
> E     File 
> "/data/jenkins/Impala/infra/python/env-gcc10.4.0/lib/python2.7/site-packages/impala/hiveserver2.py",
>  line 1509, in fetch
> E       convert_strings_to_unicode=convert_strings_to_unicode)
> E     File 
> "/data/jenkins/Impala/infra/python/env-gcc10.4.0/lib/python2.7/site-packages/impala/hiveserver2.py",
>  line 1516, in _wrap_results
> E       convert_strings_to_unicode=convert_strings_to_unicode)
> E     File 
> "/data/jenkins/Impala/infra/python/env-gcc10.4.0/lib/python2.7/site-packages/impala/hiveserver2.py",
>  line 1042, in __init__
> E       for (i, col) in enumerate(trowset.columns)]
> E   AttributeError: 'NoneType' object has no attribute 'columns'{noformat}
> This is happening when a query is killed via "KILL QUERY":
> {noformat}
> -- 2025-06-14 20:52:49,244 INFO     MainThread: hs2: executing against Impala 
> at localhost:21050. session: e64409199b769778:6c996b47da987cbe main_cursor: 
> True user: None
> KILL QUERY 'ed49f1eef22bed38:c5eae66b00000000';
> -- 2025-06-14 20:52:59,146 INFO     FetchingThread: minimal_hs2: Stop 
> fetching results
> -- 2025-06-14 20:52:59,921 INFO     MainThread: 
> c740fffdd7a5009e:1baef1fc00000000: query started
> -- 2025-06-14 20:52:59,922 INFO     MainThread: 
> c740fffdd7a5009e:1baef1fc00000000: getting log for operation
> -- 2025-06-14 20:52:59,923 INFO     MainThread: 
> c740fffdd7a5009e:1baef1fc00000000: getting runtime profile operation
> -- 2025-06-14 20:52:59,923 INFO     MainThread: 
> c740fffdd7a5009e:1baef1fc00000000: closing query for operation
> -- 2025-06-14 20:52:59,924 INFO     MainThread: hs2: closing 1 sync and 0 
> async hs2 connections to: localhost:21050
> -- 2025-06-14 20:52:59,925 INFO     MainThread: minimal_hs2: closing 
> connection to: localhost:21050{noformat}
> This could happen on other tests in test_cancellation.py.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org

Reply via email to