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

Isolate the FileSystem calls

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Implemented
    • 0.95.2
    • None
    • None

    Description

      Motivations:

      • No way to change the fs layout without touching all the code (and breaking stuff)
      • Each test create is own mocked fs layout: mkdir(region), mkdir(new Path(region, family))
      • new Path(table, region, family, hfile) is everywhere
      • DIR_NAME constants are not in a single place
      • lots of code does a the same for (region.listStatus()) for (family.listStatus()) ...

      Goals:

      • Central point for all the fs operations
        • Make easier the file creation
        • Make easier the store files retrival (with proper reference, link handling)
      • Removing all the new Path() from the code
      • Removing all the fs.listStatus() from the code
      • Cleanup the tests to use the new classes of creating mocks object
      • Reduce the code (in theory there should be less line than before once this refactor is complete)

      Since the fs operations are all over the code, the refactor must be gradual, and step by step limiting the internal fs layout visibility.

      Attachments

        1. HBASE-7806.pdf
          614 kB
          Matteo Bertozzi

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mbertozzi Matteo Bertozzi
              Votes:
              0 Vote for this issue
              Watchers:
              26 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: