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

[WINDOWS] Tests should not rely on local temp dir to be available in DFS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.94.3, 0.95.2
    • 0.95.0
    • test
    • Reviewed

    Description

      Some of the tests resolve the local temp directory for temporary test data, but use this directory path in dfs. Since on windows, local temp dir is resolved to something like: c:
      <path_to_local_dir>, DistributedFileSystem.getPathName() throws an IllegalArgumentException complaining that it is not a valid path name.

      Instead of relying on a local temp dir name, we should create a temp dir on dfs, and use this as a basis dir for test data.

      At least the following test cases are affected by this:

      TestHFileOutputFormat
      TestHRegionServerBulkLoad
      

      Attachments

        1. hbase-6830_v1-0.94.patch
          8 kB
          Enis Soztutar
        2. hbase-6830_v1-trunk.patch
          7 kB
          Enis Soztutar
        3. hbase-6830_v5-0.94.patch
          13 kB
          Enis Soztutar
        4. hbase-6830_v5-trunk.patch
          18 kB
          Enis Soztutar

        Issue Links

          Activity

            People

              enis Enis Soztutar
              enis Enis Soztutar
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: