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 "Tim Armstrong (JIRA)" <ji...@apache.org> on 2019/06/07 16:37:00 UTC
[jira] [Commented] (IMPALA-8640)
ImpalaTestSuite::create_impala_client() user session is sticky
[ https://issues.apache.org/jira/browse/IMPALA-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16858797#comment-16858797 ]
Tim Armstrong commented on IMPALA-8640:
---------------------------------------
This is a result of the behaviour of the beeswax interface in an insecure mode - if running without security, no username is provided on the initial connection. However you can provide a username with the query(), and the first username provided sticks. HS2 behaves differently and more rationally.
I think this feature of beeswax is pretty broken, so I don't think we should really invest much effort in this. We eventually want to switch to HS2 and HS2 doesn't let you change user per query afaik, it's per-session, so the above APIs that let you change user per query in tests don't really make sense at all.
> ImpalaTestSuite::create_impala_client() user session is sticky
> --------------------------------------------------------------
>
> Key: IMPALA-8640
> URL: https://issues.apache.org/jira/browse/IMPALA-8640
> Project: IMPALA
> Issue Type: Bug
> Components: Infrastructure
> Reporter: Fredy Wijaya
> Priority: Major
> Fix For: Impala 3.3.0
>
>
> ImpalaTestSuite::create_impala_client() user session is sticky, which means
> {noformat}
> client = self.create_impala_client()
> result = self.execute_query_expect_failure(client, statement, user="foo") --> the client will be bound to user "foo"
> result = self.execute_query_expect_failure(client, statement, user="bar") --> the client will still be bound to user "foo" even though we specify user="bar"
> {noformat}
--
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