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

TestDistributedLogSplitting#testMarkRegionsRecoveringInZK fails intermittently due to lack of online region

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.0, 0.95.1
    • None
    • None
    • Reviewed

    Description

      From http://54.241.6.143/job/HBase-TRUNK/org.apache.hbase$hbase-server/297/testReport/junit/org.apache.hadoop.hbase.master/TestDistributedLogSplitting/testMarkRegionsRecoveringInZK/ :

      Stacktrace
      
      java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
      	at java.util.ArrayList.get(ArrayList.java:322)
      	at org.apache.hadoop.hbase.master.TestDistributedLogSplitting.testMarkRegionsRecoveringInZK(TestDistributedLogSplitting.java:612)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      

      The assertion occurred on second line below:

          List<HRegionInfo> regions = ProtobufUtil.getOnlineRegions(hrs);
          HRegionInfo region = regions.get(0);
      

      This meant that there was no online region at that moment.

      Attachments

        1. hbase-8575.patch
          3 kB
          Jeffrey Zhong

        Issue Links

          Activity

            People

              jeffreyz Jeffrey Zhong
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: