Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-10779

Print the username closing a session or cancelling a query from the WebUI

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Impala 4.1.0
    • None
    • None
    • ghx-label-7

    Description

      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.

      // 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
      };
      

      https://github.com/apache/impala/blob/59d32853ee42886ae683aac95a8be7f9c89b8eb7/be/src/thirdparty/squeasel/squeasel.h#L77

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            chufucun Fucun Chu
            stigahuang Quanlong Huang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment