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

[meta replicas] ArrayIndexOutOfBoundsException in ZKConnectionRegistry

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      ITBLL Testing HBASE-18070 feature, huaxiangsun found this:

      2020-11-12 19:48:12,358 ERROR org.apache.hadoop.hbase.util.FutureUtils: Unexpected error caught when processing CompletableFuturejava.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3     at org.apache.hadoop.hbase.client.ZKConnectionRegistry.lambda$getMetaRegionLocation$2(ZKConnectionRegistry.java:180)     at org.apache.hadoop.hbase.util.FutureUtils.lambda$addListener$0(FutureUtils.java:68)     at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)     at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)     at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)     at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073)     at org.apache.hadoop.hbase.client.ZKConnectionRegistry.lambda$getAndConvert$0(ZKConnectionRegistry.java:78)     at org.apache.hadoop.hbase.util.FutureUtils.lambda$addListener$0(FutureUtils.java:68)     at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)     at java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)     at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)     at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073)     at org.apache.hadoop.hbase.zookeeper.ReadOnlyZKClient$ZKTask$1.exec(ReadOnlyZKClient.java:174)     at org.apache.hadoop.hbase.zookeeper.ReadOnlyZKClient.run(ReadOnlyZKClient.java:342)    at java.base/java.lang.Thread.run(Thread.java:834) 

      The code has been this way a long time but his running with four replicas seems to have revealed a race exposed by using replicaid as index.

      Attachments

        Issue Links

          Activity

            People

              stack Michael Stack
              stack Michael Stack
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: