Quanlong Huang created IMPALA-10856:
---------------------------------------
Summary: Show connections in the web UI
Key: IMPALA-10856
URL: https://issues.apache.org/jira/browse/IMPALA-10856
Project: IMPALA
Issue Type: Improvement
Components: Backend
Reporter: Quanlong Huang
HS2 protocol allows for the session to independent from the connection. Clients
like HUE that use connection pools may use a session across different
connections. We correctly handle this in IMPALA-1653. After that, each session
can be associated to more than one connections. It would be helpful to show
these connections in the /sessions page of coordinator's web UI. Note that fe
service threads actually maps to the number of connections, not sessions.
BTW, the "Network Address" column only shows the first connection of a session.
We should add all connections of it.
The handler for the /sessions URL:
[https://github.com/apache/impala/blob/5a9dcd108d8a1c6f3ea0062d8de750b6e41fb635/be/src/service/impala-http-handler.cc#L562]
The web page template of the /sessions page:
[https://github.com/apache/impala/blob/5a9dcd108d8a1c6f3ea0062d8de750b6e41fb635/www/sessions.tmpl]
The connection-session relationship is maintained in
connection_to_sessions_map_:
[https://github.com/apache/impala/blob/5a9dcd108d8a1c6f3ea0062d8de750b6e41fb635/be/src/service/impala-server.h#L1433]
Each session also tracks its connections:
[https://github.com/apache/impala/blob/5a9dcd108d8a1c6f3ea0062d8de750b6e41fb635/be/src/service/impala-server.h#L629]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)