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

Concurrent modify table ops can lead to unexpected results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha-1, 2.0.0
    • 3.0.0-alpha-1, 2.2.0, 2.3.0
    • None
    • None

    Description

      Concurrent modifyTable or add/delete/modify columnFamily leads to incorrect result. After HBASE-18893, The behavior of add/delete/modify column family during concurrent operation is changed compare to branch-1.When one client is adding cf2 and another one cf3 .. In branch-1 final result will be cf1,cf2,cf3 but now either cf1,cf2 OR cf1,cf3 will be the outcome depending on which ModifyTableProcedure executed finally.Its because new table descriptor is constructed before submitting the ModifyTableProcedure in HMaster class and its not guarded by any lock.

      Steps to reproduce

      1.Create table 't' with column family 'f1'
      2.Client-1 and Client-2 requests to add column family 'f2' and 'f3' on table 't' concurrently.

      Expected Result
      Table should have three column families(f1,f2,f3)

      Actual Result
      Table 't' will have column family either (f1,f2) or (f1,f3)

      Attachments

        1. HBASE-21487.branch-2.patch
          16 kB
          Pankaj Kumar
        2. HBASE-21487.branch-2.06.patch
          19 kB
          Syeda Arshiya Tabreen
        3. HBASE-21487.branch-2.06.patch
          19 kB
          Guanghao Zhang
        4. HBASE-21487.branch-2.05.patch
          19 kB
          Syeda Arshiya Tabreen
        5. HBASE-21487.branch-2.04.patch
          19 kB
          Syeda Arshiya Tabreen
        6. HBASE-21487.branch-2.03.patch
          19 kB
          Syeda Arshiya Tabreen
        7. HBASE-21487.branch-2.02.patch
          19 kB
          Syeda Arshiya Tabreen

        Issue Links

          Activity

            People

              arshiya9414 Syeda Arshiya Tabreen
              arshiya9414 Syeda Arshiya Tabreen
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: