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 "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/03/30 01:31:00 UTC

[jira] [Commented] (IMPALA-10605) Deflake test_refresh_native

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

ASF subversion and git services commented on IMPALA-10605:
----------------------------------------------------------

Commit 7198f07c9237e9b46b0442a256a704c216f22235 in impala's branch refs/heads/master from Vihang Karajgaonkar
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=7198f07 ]

IMPALA-10605: Deflake test_refresh_native

This test uses a regex to parse the output of
describe database and extract the db properties. The regex assumes that there
will only be 1 key value pair which is broken when events processor is
running. The fix is to modify the regex so that it only extracts the
relevant function name prefix and its value.

Testing:
1. The test fails when events processor is enabled. After the patch
the test works as expected.

Change-Id: I1df35b9c5f2b21cc7172f03ff8611d46070d64c2
Reviewed-on: http://gerrit.cloudera.org:8080/17227
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


> Deflake test_refresh_native
> ---------------------------
>
>                 Key: IMPALA-10605
>                 URL: https://issues.apache.org/jira/browse/IMPALA-10605
>             Project: IMPALA
>          Issue Type: Improvement
>            Reporter: Vihang Karajgaonkar
>            Assignee: Vihang Karajgaonkar
>            Priority: Minor
>
> The test uses a regex to parse the output of describe database and extract the db properties. The regex currently assumes that there will be only one property in the database. This assumption breaks when events processor is running because it might add some db properties as well.
> {noformat}
> regex = r"{(.*?)=(.*?)}"
> {noformat}
> The above regex will select subsequent properties as the value of the first key. We can fix this by changing the regex to specifically look for the functional name property key prefix.
> {noformat}
> regex = r"{.*(impala_registered_function.*?)=(.*?)[,}]"
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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