[
https://issues.apache.org/jira/browse/IMPALA-10779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17390004#comment-17390004
]
ASF subversion and git services commented on IMPALA-10779:
----------------------------------------------------------
Commit 8a2758f1e88500867d8d2fbaffb62493fca2215a in impala's branch
refs/heads/master from Fucun Chu
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=8a2758f ]
IMPALA-10779: Print the username closing a session or cancelling a query from
the WebUI
This patch appends the username of the client who made the request to
close a session or cancel a query from the coordinator's debug WebUI.
Tests:
- Added a new fe test for LDAP auth to verify that the new status gets
printed in runtime profile and coordinator log when a query is
cancelled in this way.
Change-Id: I02c92b5caee61d1f9f381cd2906a850e02c54d55
Reviewed-on: http://gerrit.cloudera.org:8080/17726
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> Print the username closing a session or cancelling a query from the WebUI
> -------------------------------------------------------------------------
>
> Key: IMPALA-10779
> URL: https://issues.apache.org/jira/browse/IMPALA-10779
> Project: IMPALA
> Issue Type: Improvement
> Reporter: Quanlong Huang
> Assignee: Fucun Chu
> Priority: Major
>
> IMPALA-9182 prints the socket address of the client closing a session or
> cancelling a query from the WebUI. There is a 'remote_user' field in
> {{sq_request_info}}. We may be able to print the username when auth is
> enabled.
> {code:cpp}
> // This structure contains information about the HTTP request.
> struct sq_request_info {
> const char *request_method; // "GET", "POST", etc
> const char *uri; // URL-decoded URI
> const char *http_version; // E.g. "1.0", "1.1"
> const char *query_string; // URL part after '?', not including '?', or
> NULL
> const char *remote_user; // Authenticated user, or NULL if no auth used
> long remote_ip; // Client's IP address
> int remote_port; // Client's port
> int is_ssl; // 1 if SSL-ed, 0 if not
> void *user_data; // User data pointer passed to sq_start()
> void *conn_data; // Connection-specific user data
> int num_headers; // Number of HTTP headers
> struct sq_header {
> const char *name; // HTTP header name
> const char *value; // HTTP header value
> } http_headers[64]; // Maximum 64 headers
> };
> {code}
> https://github.com/apache/impala/blob/59d32853ee42886ae683aac95a8be7f9c89b8eb7/be/src/thirdparty/squeasel/squeasel.h#L77
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]