[ 
https://issues.apache.org/jira/browse/SPARK-24629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

StephenZou updated SPARK-24629:
-------------------------------
    Description: 
When Beeline connection closes, spark thrift server (STS) will send a session 
close event, then the relevant listener in class HiveThriftServer2 will clean 
its internal session states.

But the internal statement state is not updated, (see graph attached).  So it 
remains in state Compiled and doesn't be swept out. 

Another graph is that after fixing it.

  was:
When Beeline connection closes, spark thrift server (STS) will send a session 
close event, then the relevant listener in class HiveThriftServer2 will clean 
its internal session states.

But the internal statement state is not updated, (see graph attached).  So it 
remains in state Compiled and doesn't be swept out. 


> thrift server memory leak when beeline connection quits
> -------------------------------------------------------
>
>                 Key: SPARK-24629
>                 URL: https://issues.apache.org/jira/browse/SPARK-24629
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.2.1, 2.3.1
>            Reporter: StephenZou
>            Priority: Minor
>         Attachments: 2222.png, 3333.png
>
>
> When Beeline connection closes, spark thrift server (STS) will send a session 
> close event, then the relevant listener in class HiveThriftServer2 will clean 
> its internal session states.
> But the internal statement state is not updated, (see graph attached).  So it 
> remains in state Compiled and doesn't be swept out. 
> Another graph is that after fixing it.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to