[ https://issues.apache.org/jira/browse/HIVE-17401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16153947#comment-16153947 ]
Xuefu Zhang commented on HIVE-17401: ------------------------------------ Hi [~pvary], Thanks for the review. I think your suggestion makes sense except that we have to initialize {{lastAccessTime}} to current time (instead of 0). Otherwise, there is a slim chance that a session gets timed out before it's completed opened. I will post a new patch for this. > Hive session idle timeout doesn't function properly > --------------------------------------------------- > > Key: HIVE-17401 > URL: https://issues.apache.org/jira/browse/HIVE-17401 > Project: Hive > Issue Type: Bug > Affects Versions: 1.1.0 > Reporter: Xuefu Zhang > Assignee: Xuefu Zhang > Attachments: HIVE-17401.1.patch, HIVE-17401.patch > > > It's apparent in our production environment that HS2 leaks sessions, which at > least contributed to memory leaks in HS2. We further found that idle HS2 > sessions rarely get timed out and the number of live session keeps increasing > as time goes on. Eventually, HS2 becomes irresponsive and demands a restart. > Investigation shows that session idle timeout doesn't work appropriately. -- This message was sent by Atlassian JIRA (v6.4.14#64029)