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

HMaster.createTable could be heavily optimized

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.90.3
    • 0.92.0
    • None
    • None
    • Reviewed

    Description

      Looking at the createTable method in HMaster (the one that's private), we seem to be very inefficient:

      • We set the enabled flag for the table for every region (should be done only once).
      • Every time we create a new region we create a new HLog and then close it (reuse one instead or see if it's really necessary).
      • We do one RPC to .META. per region (we should batch put).

      This should provide drastic speedups even for those creating tables with just 50 regions.

      Attachments

        1. 4010-0.90.txt
          8 kB
          Ted Yu
        2. 4010-v2.txt
          8 kB
          Ted Yu
        3. 4010-v3.txt
          8 kB
          Ted Yu
        4. 4010-v5.txt
          9 kB
          Ted Yu

        Issue Links

          Activity

            People

              yuzhihong@gmail.com Ted Yu
              jdcryans Jean-Daniel Cryans
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: