You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Jim Kellerman (JIRA)" <ji...@apache.org> on 2007/07/04 02:12:04 UTC

[jira] Updated: (HADOOP-1560) NPE in MiniHBaseCluster on Windows

     [ https://issues.apache.org/jira/browse/HADOOP-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Kellerman updated HADOOP-1560:
----------------------------------

    Attachment: patch.txt

Some of the test cases did not clean up after themselves, possibly leaving MiniDFSClusters running.

This in turn would cause subsequent test cases to possibly fail initialization, and try to deallocate resources that had not been allocated yet (and hence the NPEs).

Fixes in this patch ensure that resources are freed and that references are initialized  enough so that when shutdown is called if construction fails, no NPEs should be generated.

> NPE in MiniHBaseCluster on Windows
> ----------------------------------
>
>                 Key: HADOOP-1560
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1560
>             Project: Hadoop
>          Issue Type: Bug
>          Components: contrib/hbase
>    Affects Versions: 0.14.0
>            Reporter: Nigel Daley
>         Attachments: patch.txt
>
>
> org.apache.hadoop.hbase.TestScanner2.testSplitDeleteOneAddTwoRegions
> java.lang.NullPointerException
> 	at org.apache.hadoop.hbase.MiniHBaseCluster.shutdown(MiniHBaseCluster.java:239)
> 	at org.apache.hadoop.hbase.HBaseClusterTestCase.tearDown(HBaseClusterTestCase.java:63)
> Standard Error
> 07/07/02 20:55:30 ERROR hbase.MiniHBaseCluster: Failed setup of mini dfs cluster
> java.io.IOException: Cannot remove data directory: C:\hudson\workspace\Hadoop-WindowsTest\trunk\build\contrib\hbase\test\data\dfs\data
> 	at org.apache.hadoop.dfs.MiniDFSCluster.<init>(MiniDFSCluster.java:123)
> 	at org.apache.hadoop.dfs.MiniDFSCluster.<init>(MiniDFSCluster.java:77)
> 	at org.apache.hadoop.hbase.MiniHBaseCluster.<init>(MiniHBaseCluster.java:108)
> 	at org.apache.hadoop.hbase.MiniHBaseCluster.<init>(MiniHBaseCluster.java:69)
> 	at org.apache.hadoop.hbase.HBaseClusterTestCase.setUp(HBaseClusterTestCase.java:55)
> 	at junit.framework.TestCase.runBare(TestCase.java:125)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
> 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
> 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
> java.io.IOException: Cannot remove data directory: C:\hudson\workspace\Hadoop-WindowsTest\trunk\build\contrib\hbase\test\data\dfs\data
> 	at org.apache.hadoop.dfs.MiniDFSCluster.<init>(MiniDFSCluster.java:123)
> 	at org.apache.hadoop.dfs.MiniDFSCluster.<init>(MiniDFSCluster.java:77)
> 	at org.apache.hadoop.hbase.MiniHBaseCluster.<init>(MiniHBaseCluster.java:108)
> 	at org.apache.hadoop.hbase.MiniHBaseCluster.<init>(MiniHBaseCluster.java:69)
> 	at org.apache.hadoop.hbase.HBaseClusterTestCase.setUp(HBaseClusterTestCase.java:55)
> 	at junit.framework.TestCase.runBare(TestCase.java:125)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
> 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
> 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.