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 "Anurag Mantripragada (JIRA)" <ji...@apache.org> on 2019/08/09 00:38:00 UTC

[jira] [Work started] (IMPALA-8124) Build failure: webserver/test_web_pages.py

     [ https://issues.apache.org/jira/browse/IMPALA-8124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on IMPALA-8124 started by Anurag Mantripragada.
----------------------------------------------------
> Build failure: webserver/test_web_pages.py
> ------------------------------------------
>
>                 Key: IMPALA-8124
>                 URL: https://issues.apache.org/jira/browse/IMPALA-8124
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Catalog
>    Affects Versions: Impala 3.1.0, Impala 3.2.0
>            Reporter: Paul Rogers
>            Assignee: Anurag Mantripragada
>            Priority: Major
>              Labels: build-failure, flaky
>             Fix For: Impala 3.3.0
>
>
> Build log output:
> {noformat}
> 04:20:18 =================================== FAILURES ===================================
> 04:20:18 ___________________________ TestWebPage.test_catalog ___________________________
> 04:20:18 [gw4] linux2 -- Python 2.7.5 /data/jenkins/workspace/impala-cdh6.x-core/repos/Impala/bin/../infra/python/env/bin/python
> 04:20:18 webserver/test_web_pages.py:265: in test_catalog
> 04:20:18     self.__test_table_metrics("functional", "alltypes", "total-file-size-bytes")
> 04:20:18 webserver/test_web_pages.py:283: in __test_table_metrics
> 04:20:18     "?name=%s.%s" % (db_name, tbl_name), metric, ports_to_test=self.CATALOG_TEST_PORT)
> 04:20:18 webserver/test_web_pages.py:144: in get_and_check_status
> 04:20:18     assert response.status_code == requests.codes.ok\
> 04:20:18 E   AssertionError: Offending url: http://localhost:25020/table_metrics?name=functional.alltypes
> 04:20:18 E   assert (200 == 200 and 'total-file-size-bytes' in '<!--\nLicensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements.  See the NOTI...lltypesare not available because the table is currently modified by another operation.</pre>\n\n</div>\n</body>\n</html>\n\n')
> 04:20:18 E    +  where 200 = <Response [200]>.status_code
> 04:20:18 E    +  and   200 = <lookup 'status_codes'>.ok
> 04:20:18 E    +    where <lookup 'status_codes'> = requests.codes
> 04:20:18 E    +  and   '<!--\nLicensed to the Apache Software Foundation (ASF) under one\nor more contributor license agreements.  See the NOTI...lltypesare not available because the table is currently modified by another operation.</pre>\n\n</div>\n</body>\n</html>\n\n' = <Response [200]>.text
> {noformat}
> Hard to read, but apparently the test wants to perform two checks at once:
> {noformat}
>       assert response.status_code == requests.codes.ok\
>           and string_to_search in response.text, "Offending url: " + input_url
> {noformat}
> The return code part appears to match. So the question is whether the string "total-file-size-bytes" appears in the output.
> Tried building from latest master and hitting my local server with the same URL as above. The page reported:
> {noformat}
> num-partitions: 24
> total-file-size-bytes: 489934
> {noformat}
> So, the string match part should work. 
> General observation: it is not helpful at all to include an and in an {{assert}} statement: doing so makes debugging very difficult. Please use one condition per {{assert}}.
> Net result is that there is no obvious failure here; someone will need to did into it more deeply.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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