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

Refactor EventType to track its own ExecutorService type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.95.2
    • 0.95.0
    • master
    • None
    • Reviewed
    • Simple refactor of ExecutorType to bind more tightly to the EventType (rather than keeping them across different files).

    Description

      Currently there is a massive switch statement in org.apache.hadoop.hbase.executor.ExecutorService for the ExecutorType for each org.apache.hadoop.hbase.executor.EventHandler.EventType. This means is you add an new event type, you will also have to change the executorservice file, if for nothing but to add the executor type. Instead the EventType should just be able to keep track of which executor it should use.

      Attachments

        1. java_hbase-6296-v0.patch
          9 kB
          Jesse Yates
        2. java_hbase-6296-v0.patch
          9 kB
          Jesse Yates
        3. 6296v1.txt
          8 kB
          Michael Stack
        4. 6296v1.txt
          8 kB
          Michael Stack

        Activity

          People

            jesse_yates Jesse Yates
            jesse_yates Jesse Yates
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: