Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-7153

filesystem_client methods expect unusual paths

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 3.0
    • Impala 3.3.0
    • Infrastructure
    • ghx-label-9

    Description

      In Impala end to end python tests, most paths are either absolute or fully qualified (i.e. /test-warehouse/db/table or hdfs://namenode:port/test-warehouse/db/table), yet the classes derived from BaseFilesystem tend to expect paths that are absolute but without the leading slash.

      This leads to awkward and error prone testing code. For example, see IMPALA-7099 and test_unsupported_text_compression() which does e.g.:

          self.filesystem_client.create_file("{0}/fake.lz4".format(lz4_ym_partition_loc)[1:],
              "some test data")
      

      Not only is this confusing, but it doesn't work when the test is run with FILESYSTEM_PREFIX not empty.

      We should fix the filesystem_client classes to handle absolute and fully qualified paths so that each test doesn't have to worry about this.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dhecht Daniel Hecht
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: