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

TestRegionPlacement is failing undeterministically

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0
    • 0.99.1
    • test
    • None
    • Reviewed

    Description

      TestRegionPlacement has tests that are flaky and fail in a cascading fashion. We need to fix this cascading behavior and also fix the flakyness of the tests.
      16:20:59 java.lang.AssertionError: Region

      {ENCODED => 958cbbb4405e3bbcfd04185538912d4c, NAME => 'testRegionAssignment,\x02\x02\x02,1412205636586.958cbbb4405e3bbcfd04185538912d4c.', STARTKEY => '\x02\x02\x02', ENDKEY => '\x03\x03\x03'}

      not present on any of the expected servers
      16:20:59 at org.junit.Assert.fail(Assert.java:88)
      16:20:59 at org.apache.hadoop.hbase.master.TestRegionPlacement.killRandomServerAndVerifyAssignment(TestRegionPlacement.java:347)
      16:20:59 at org.apache.hadoop.hbase.master.TestRegionPlacement.testRegionPlacement(TestRegionPlacement.java:270)
      16:20:59
      16:20:59 testFavoredNodesPresentForRoundRobinAssignment(org.apache.hadoop.hbase.master.TestRegionPlacement) Time elapsed: 0.047 sec <<< ERROR!
      16:20:59 java.lang.ArrayIndexOutOfBoundsException: 9
      16:20:59 at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:368)
      16:20:59 at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:377)
      16:20:59 at org.apache.hadoop.hbase.LocalHBaseCluster.getRegionServer(LocalHBaseCluster.java:237)
      16:20:59 at org.apache.hadoop.hbase.MiniHBaseCluster.getRegionServer(MiniHBaseCluster.java:609)
      16:20:59 at org.apache.hadoop.hbase.master.TestRegionPlacement.testFavoredNodesPresentForRoundRobinAssignment(TestRegionPlacement.java:113)
      16:20:59
      16:20:59 testFavoredNodesPresentForRandomAssignment(org.apache.hadoop.hbase.master.TestRegionPlacement) Time elapsed: 0.041 sec <<< ERROR!
      16:20:59 java.lang.ArrayIndexOutOfBoundsException: 9
      16:20:59 at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:368)
      16:20:59 at java.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:377)
      16:20:59 at org.apache.hadoop.hbase.LocalHBaseCluster.getRegionServer(LocalHBaseCluster.java:237)
      16:20:59 at org.apache.hadoop.hbase.MiniHBaseCluster.getRegionServer(MiniHBaseCluster.java:609)
      16:20:59 at org.apache.hadoop.hbase.master.TestRegionPlacement.testFavoredNodesPresentForRandomAssignment(TestRegionPlacement.java:173)

      Attachments

        1. 0001-Split-TestRegionPlacement.patch
          20 kB
          Manukranth Kolloju
        2. 0001-Split-TestRegionPlacement.patch
          20 kB
          Manukranth Kolloju

        Activity

          People

            manukranthk Manukranth Kolloju
            manukranthk Manukranth Kolloju
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 168h
                168h
                Remaining:
                Remaining Estimate - 168h
                168h
                Logged:
                Time Spent - Not Specified
                Not Specified