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

Add compression codec test at HMaster when createTable/modifyColumn/modifyTable

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.95.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      We deployed a cluster that none of the regionserver supports the compression codec such like "lzo", but the cluster user/client does not know this, and he specifies the family's compression codec by HColumnDescripto.setCompressionType(Compresson.Algorithm.LZO);

      Because the HBaseAdmin's createTable is async, so the client is waiting all the regions of the table to be online forever. And client does not know why the regions are not online until the HBase administrator find this problem.

      In deed, all of the regions are assigning by master, but regionserver's openHRegion always failed.

      In my option, we can suppose all the cluster's enviroment are the same, means if the master is deployed some lib, the regionserver should also be deployed.

      Of course above is just a supposeļ¼Œ in real deployment, the hbase dba may just deploy lib on regionserver or master.

      So I think this failure can be found earlier before master create the CreateTableHandler thread, and we can tell client quickly we didn't support this compression codec type.

      I will upload the patch later.

        Attachments

        1. 6370v3.txt
          3 kB
          Michael Stack
        2. HBASE-6370-trunk-V1.patch
          2 kB
          ShiXing
        3. HBASE-6370-trunk-V2.patch
          3 kB
          ShiXing
        4. runAllTests.out
          63 kB
          ShiXing

          Activity

            People

            • Assignee:
              xingshi ShiXing
              Reporter:
              xingshi ShiXing
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: