----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/33633/#review81845 -----------------------------------------------------------
service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java <https://reviews.apache.org/r/33633/#comment132336> Is it necessary to call close twice? Can we consolidate the two finally blocks? - Szehon Ho On April 28, 2015, 5:56 p.m., Jimmy Xiang wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/33633/ > ----------------------------------------------------------- > > (Updated April 28, 2015, 5:56 p.m.) > > > Review request for hive and Szehon Ho. > > > Bugs: HIVE-10499 > https://issues.apache.org/jira/browse/HIVE-10499 > > > Repository: hive-git > > > Description > ------- > > Make sure Session/SessionState/ZooKeeperHiveClient instances are closed if > some exception is thrown in a wrong place, so as to avoid some possible > resource leakage. > > > Diffs > ----- > > jdbc/src/java/org/apache/hive/jdbc/ZooKeeperHiveClientHelper.java 496c820 > service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java > f14b974 > service/src/java/org/apache/hive/service/cli/session/SessionManager.java > e02997a > service/src/java/org/apache/hive/service/server/HiveServer2.java 222cb45 > > Diff: https://reviews.apache.org/r/33633/diff/ > > > Testing > ------- > > > Thanks, > > Jimmy Xiang > >