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

Case-insensitivity of file system affects table creation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • 1.0.0
    • None
    • shell
    • HBase standalone mode on Mac OS X.

    Description

      I noticed this on my Mac OS machine:

      hbase(main):003:0> list
      TABLE                                                                                                                                                          
      0 row(s) in 0.0260 seconds
      
      => []
      hbase(main):004:0> create 'TestTable', 'info'
      0 row(s) in 0.2830 seconds
      
      => Hbase::Table - TestTable
      hbase(main):005:0> create 'testtable', 'colfam1'
      0 row(s) in 0.1750 seconds
      
      => Hbase::Table - testtable
      hbase(main):006:0> list
      TABLE                                                                                                                                                          
      TestTable                                                                                                                                                      
      TestTable                                                                                                                                                      
      2 row(s) in 0.0170 seconds
      
      => ["TestTable", "TestTable"]
      hbase(main):007:0> status 'detailed'
      version 1.0.0
      0 regionsInTransition
      master coprocessors: []
      1 live servers
          de1-app-mba-1.internal.larsgeorge.com:58824 1431124680152
              requestsPerSecond=0.0, numberOfOnlineRegions=4, usedHeapMB=47, maxHeapMB=4062, numberOfStores=4, numberOfStorefiles=0, storefileUncompressedSizeMB=0, storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0, readRequestsCount=16, writeRequestsCount=8, rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN, coprocessors=[]
              "TestTable,,1431124762491.cb30b003b192aa1d429e5a8e908a2f7d."
                  numberOfStores=1, numberOfStorefiles=0, storefileUncompressedSizeMB=0, storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0, readRequestsCount=0, writeRequestsCount=0, rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN, completeSequenceId=-1, dataLocality=0.0
              "hbase:meta,,1"
                  numberOfStores=1, numberOfStorefiles=0, storefileUncompressedSizeMB=0, storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0, readRequestsCount=10, writeRequestsCount=6, rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN, completeSequenceId=-1, dataLocality=0.0
              "hbase:namespace,,1431124686536.42728f3a3411b0d8ff21c7a2622d9378."
                  numberOfStores=1, numberOfStorefiles=0, storefileUncompressedSizeMB=0, storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0, readRequestsCount=6, writeRequestsCount=2, rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN, completeSequenceId=-1, dataLocality=0.0
              "testtable,,1431124773352.8d461d5069d1c88bc3b26562ab30e333."
                  numberOfStores=1, numberOfStorefiles=0, storefileUncompressedSizeMB=0, storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0, readRequestsCount=0, writeRequestsCount=0, rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN, completeSequenceId=-1, dataLocality=0.0
      0 dead servers
      

      and on the file system there is

      larsgeorge:~$ ls -l hbase/data/default/
      total 0
      drwxr-xr-x  7 larsgeorge  staff  238 May  8 15:39 TestTable
      

      This should not happen on a case sensitive file system (I presume), so is of marginal importance. But a simple extra check during directory creation could fix this.

      Attachments

        1. HBASE-13652.master.005.patch
          9 kB
          Xuesen Liang
        2. HBASE-13652.master.004.patch
          7 kB
          Xuesen Liang
        3. HBASE-13652.master.003.patch
          7 kB
          Xuesen Liang
        4. HBASE-13652.master.002.patch
          8 kB
          Xuesen Liang
        5. HBASE-13652.master.001.patch
          2 kB
          Xuesen Liang

        Activity

          People

            Unassigned Unassigned
            larsgeorge Lars George
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: