[ https://issues.apache.org/jira/browse/HIVE-15551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15816450#comment-15816450 ]
Hive QA commented on HIVE-15551: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12846629/HIVE-15551.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 9 failed/errored test(s), 10934 tests executed *Failed tests:* {noformat} TestDerbyConnector - did not produce a TEST-*.xml file (likely timed out) (batchId=233) TestSparkCliDriver - did not produce a TEST-*.xml file (likely timed out) (batchId=124) [table_access_keys_stats.q,bucketmapjoin11.q,auto_join4.q,mapjoin_decimal.q,join34.q,nullgroup.q,mergejoins_mixed.q,sort.q,stats8.q,auto_join28.q,join17.q,union17.q,skewjoinopt11.q,groupby1_map.q,load_dyn_part11.q] org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[case_sensitivity] (batchId=61) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[input_testxpath] (batchId=28) org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[udf_coalesce] (batchId=75) org.apache.hadoop.hive.cli.TestMiniLlapCliDriver.testCliDriver[orc_ppd_schema_evol_3a] (batchId=135) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[schema_evol_text_vec_part] (batchId=148) org.apache.hadoop.hive.cli.TestMiniLlapLocalCliDriver.testCliDriver[vector_varchar_simple] (batchId=151) org.apache.hive.jdbc.TestMultiSessionsHS2WithLocalClusterSpark.testSparkQuery (batchId=215) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/2866/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/2866/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-2866/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 9 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12846629 - PreCommit-HIVE-Build > memory leak in directsql for mysql+bonecp specific initialization > ----------------------------------------------------------------- > > Key: HIVE-15551 > URL: https://issues.apache.org/jira/browse/HIVE-15551 > Project: Hive > Issue Type: Bug > Components: Metastore > Affects Versions: 0.13.0 > Reporter: Xiaomin Zhang > Assignee: Xiaomin Zhang > Attachments: HIVE-15551.patch, HIVE-15551.patch.txt > > > We observed HMS memory leak when directsql is enabled for MySQL metastore DB. > > The affected code is in the method MetaStoreDirecdtSql.executeNoResult(): > ((Connection)jdoConn.getNativeConnection()).createStatement().execute(queryText); > The statement object (from createStatement()) is unfortunately referenced in > the Connection object. Although close() is called on the Connection object > in finally block, the BoneCP just moves it to a freeConnection list. Hence, > statement object never get chances to be closed. > The leaked statement object is not huge (~1KB as observed in memory > analyzer). However long running Hive Metastore Server is very likely ended up > with bad performance doing frequent garbage collection. -- This message was sent by Atlassian JIRA (v6.3.4#6332)