[
https://issues.apache.org/jira/browse/DRILL-475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13957496#comment-13957496
]
Aditya Kishore commented on DRILL-475:
--------------------------------------
Build runs fine with this patch.
{noformat}
$ mvn install
[INFO] Scanning for projects...
....................
....................
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Drill Root POM ............................. SUCCESS [3.376s]
[INFO] Drill Protocol .................................... SUCCESS [4.976s]
[INFO] Common (Logical Plan, Base expressions) ........... SUCCESS [4.682s]
[INFO] contrib/Parent Pom ................................ SUCCESS [0.388s]
[INFO] contrib/data/Parent Pom ........................... SUCCESS [0.353s]
[INFO] contrib/data/tpch-sample-data ..................... SUCCESS [2.738s]
[INFO] contrib/storage-hive .............................. SUCCESS [19.288s]
[INFO] exec/Parent Pom ................................... SUCCESS [0.383s]
[INFO] exec/Netty Little Endian Buffers .................. SUCCESS [0.748s]
[INFO] exec/Java Execution Engine ........................ SUCCESS [3:21.108s]
[INFO] contrib/hbase-storage-plugin ...................... SUCCESS [29.389s]
[INFO] SQL Parser ........................................ SUCCESS [56.301s]
[INFO] contrib/sqlline ................................... SUCCESS [0.812s]
[INFO] Packaging and Distribution Assembly ............... SUCCESS [8.136s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5:33.168s
[INFO] Finished at: Wed Apr 02 02:36:26 PDT 2014
[INFO] Final Memory: 107M/765M
[INFO] ------------------------------------------------------------------------
$
{noformat}
> TestJdbcQuery fails on Windows due to resource leak
> ---------------------------------------------------
>
> Key: DRILL-475
> URL: https://issues.apache.org/jira/browse/DRILL-475
> Project: Apache Drill
> Issue Type: Bug
> Reporter: Aditya Kishore
> Assignee: Aditya Kishore
> Labels: tests, windows
>
> Two test case classes {{TestJdbcQuery}} and {{TestJdbcDistQuery}} both call
> {{org.apache.drill.exec.store.hive.HiveTestDataGenerator.generateTestData()}}
> during the test phase which starts with cleaning up of scratch directory.
> {noformat}
> public void generateTestData() throws Exception {
> // remove data from previous runs.
> cleanDir(DB_DIR);
> cleanDir(WH_DIR);
> ...
> {noformat}
> However the files opened by the first tests are not closed before the second
> test starts execution and hence the execution fails.
> {noformat}
> Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 32.005 sec -
> in org.apache.drill.jdbc.test.TestJdbcDistQuery
> Running org.apache.drill.jdbc.test.TestJdbcQuery
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.086 sec <<<
> FAILURE! - in org.apache.drill.jdbc.test.TestJdbcQuery
> org.apache.drill.jdbc.test.TestJdbcQuery Time elapsed: 0.086 sec <<< ERROR!
> java.io.IOException: Unable to delete file: \tmp\drill_hive_db\seg0\cf0.dat
> at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1919)
> at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> at
> org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1331)
> at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1910)
> at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1399)
> at
> org.apache.drill.exec.store.hive.HiveTestDataGenerator.cleanDir(HiveTestDataGenerator.java:49)
> at
> org.apache.drill.exec.store.hive.HiveTestDataGenerator.generateTestData(HiveTestDataGenerator.java:57)
> at
> org.apache.drill.jdbc.test.TestJdbcQuery.generateHive(TestJdbcQuery.java:55)
> {noformat}
> A fix for this would require shutting down the Hive service(s) (Metastore?)
> between the test runs.
--
This message was sent by Atlassian JIRA
(v6.2#6252)