hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kousuke Saruta" <>
Subject Re: Review Request 14298: Memory leak when using JDBC connections.
Date Fri, 27 Sep 2013 00:12:39 GMT

This is an automatically generated e-mail. To reply, visit:

(Updated Sept. 27, 2013, 12:12 a.m.)

Review request for hive.

Bugs: HIVE-5296

Repository: hive-git


Hiveserver2 will occur memory leak caused by increasing Hashtable$Entry at least 2 situation
as follows.

1. When Exceptions are thrown during executing commmand or query, operation handle will not
2. Hiveserver2 calls FileSystem#get method and never call FileSystem#close or FileSystem.closeAll
so FileSystem$Cache will continue to increase.

I've modified HiveSessionImpl and HiveStatement not to lose operation handle. Operation handle
is needed by OperationManager to remove from handleToOpration.
Also, I've modified HiveSessionImpl to close FileSystem object at the end of session.

Diffs (updated)

  service/src/java/org/apache/hive/service/cli/session/ 11c96b2 



I confirmed only not increasing Hashtable$Entry by jmap.


Kousuke Saruta

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message