You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Sahil Takiar (JIRA)" <ji...@apache.org> on 2019/01/09 02:25:00 UTC

[jira] [Commented] (IMPALA-8059) TestWebPage::test_backend_states is flaky

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

Sahil Takiar commented on IMPALA-8059:
--------------------------------------

Some more info from the Jenkins job where this test failed:

{code}
=================================== FAILURES ===================================
_______________________ TestWebPage.test_backend_states ________________________
webserver/test_web_pages.py:321: in test_backend_states
    expected_state=running_state)
webserver/test_web_pages.py:297: in __run_query_and_get_debug_page
    self.wait_for_state(query_handle, expected_state, 100)
common/impala_test_suite.py:841: in wait_for_state
    % (handle.get_handle().id, expected_state, actual_state))
E   Timeout: query 'a94c0fc5da9a0f80:f74ed94200000000' did not reach expected state '3', last known state '4'
---------------------------- Captured stderr setup -----------------------------
SET sync_ddl=False;
-- executing against localhost:21000
DROP DATABASE IF EXISTS `test_backend_states_22f4a3e6` CASCADE;

-- 2019-01-07 23:30:21,788 INFO     MainThread: Started query 2f402bda419c7cc4:25a4492700000000
SET sync_ddl=False;
-- executing against localhost:21000
CREATE DATABASE `test_backend_states_22f4a3e6`;

-- 2019-01-07 23:30:22,619 INFO     MainThread: Started query 444d7423b372c442:10c3af7800000000
-- 2019-01-07 23:30:22,621 INFO     MainThread: Created database "test_backend_states_22f4a3e6" for test ID "webserver/test_web_pages.py::TestWebPage::()::test_backend_states"
----------------------------- Captured stderr call -----------------------------
-- executing async: localhost:21000
select sleep(10000) from functional.alltypes limit 1;
-- 2019-01-07 23:30:22,626 INFO     MainThread: Started query a94c0fc5da9a0f80:f74ed94200000000
getting state for operation: &lt;tests.common.impala_connection.OperationHandle object at 0xc87d250&gt;
{code}

As stated in the description, the query {{select sleep(10000) from functional.alltypes limit 1}} reached state FINISHED before the method {{__run_query_and_get_debug_page}} was able to check that it was in the RUNNING state. The intention of the test was for it run for at least 10 seconds so that the Python test could query the backend URL while the query was running.

> TestWebPage::test_backend_states is flaky
> -----------------------------------------
>
>                 Key: IMPALA-8059
>                 URL: https://issues.apache.org/jira/browse/IMPALA-8059
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: Pooja Nilangekar
>            Assignee: Sahil Takiar
>            Priority: Blocker
>              Labels: broken-build, flaky-test
>
> test_backend_states is flaky. The query reaches the _"FINISHED"_ state before it's state is verified by the python test. Here are the relevant log: 
> {code:java}
> 07:33:45 ----------------------------- Captured stderr call -----------------------------
> 07:33:45 -- executing async: localhost:21000
> 07:33:45 select sleep(10000) from functional.alltypes limit 1;
> 07:33:45 
> 07:33:45 -- 2019-01-08 07:31:57,952 INFO     MainThread: Started query 7f46f15ed4d6d0f6:4d58cdbc00000000
> 07:33:45 -- getting state for operation: <tests.common.impala_connection.OperationHandle object at 0x5b3db90>
> {code}
> This bug was introduced by IMPALA-7625.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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