Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-20807

Refactor LlapStatusServiceDriver

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0-alpha-1
    • Hive
    • None

    Description

      LlapStatusServiceDriver is the class used to determine if LLAP has started. The following problems should be solved by refactoring:

      1. The main class is more than 800 lines long,should be cut into multiple smaller classes.
      2. The current design makes it extremely hard to write unit tests.
      3. There are some overcomplicated, over-engineered parts of the code.
      4. Most of the code is under org.apache.hadoop.hive.llap.cli, but some parts are under org.apache.hadoop.hive.llap.cli.status. The whole program could be moved to the latter.
      5. LlapStatusHelpers serves as a class for holding classes, which doesn't make much sense.

      Attachments

        1. HIVE-20807.01.patch
          137 kB
          Miklos Gergely
        2. HIVE-20807.02.patch
          137 kB
          Miklos Gergely
        3. HIVE-20807.03.patch
          139 kB
          Miklos Gergely
        4. HIVE-20807.04.patch
          139 kB
          Miklos Gergely
        5. HIVE-20807.05.patch
          139 kB
          Miklos Gergely
        6. HIVE-20807.06.patch
          139 kB
          Miklos Gergely

        Issue Links

          Activity

            People

              mgergely Miklos Gergely
              mgergely Miklos Gergely
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: