Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-2591

HBASE-2587 hardcoded the port that dfscluster runs on

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.90.0
    • None
    • None

    Description

      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:

      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;
         }
      

      Attachments

        Activity

          People

            stack Michael Stack
            stack Michael Stack
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: