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

stack resolved HBASE-2591.
--------------------------

         Assignee: stack
    Fix Version/s: 0.21.0
       Resolution: Fixed

Committed.

> HBASE-2587 hardcoded the port that dfscluster runs on
> -----------------------------------------------------
>
>                 Key: HBASE-2591
>                 URL: https://issues.apache.org/jira/browse/HBASE-2591
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.21.0
>
>
>  HBASE-2587 "Coral where tests write data when running and make sure clean 
> target removes all written" hardcoded the port that dfscluster runs on.  
> Makes it so can't run tests in shared environment.
> Here's a fix:
> {code}
> diff --git a/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java 
> b/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
> index 8795ba6..238e804 100644
> --- a/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
> +++ b/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java
> @@ -173,8 +173,8 @@ public class HBaseTestingUtility {
>      else this.clusterTestBuildDir = dir;
>      System.setProperty(TEST_DIRECTORY_KEY, 
> this.clusterTestBuildDir.toString());
>      System.setProperty("test.cache.data", 
> this.clusterTestBuildDir.toString());
> -    this.dfsCluster = new MiniDFSCluster(12345, this.conf, servers, true,
> -      true, true, null, null, null, null);
> +    this.dfsCluster = new MiniDFSCluster(0, this.conf, servers, true, true,
> +      true, null, null, null, null);
>      return this.dfsCluster;
>    }
> {code}

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

Reply via email to