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

Fix java.lang.ArrayIndexOutOfBoundsException in StochasticLoadBalancer$LocalityBasedCandidateGenerator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.96.2, 0.98.1, 0.99.0, hbase-10070
    • None
    • None

    Description

      Recent fix in HBASE-10632 to StochasticLoadBalancer$LocalityBasedCandidateGenerator revealed another issue:

      java.lang.ArrayIndexOutOfBoundsException: -1
      	at org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer$CandidateGenerator.pickRandomRegion(StochasticLoadBalancer.java:405)
      	at org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer$LocalityBasedCandidateGenerator.generate(StochasticLoadBalancer.java:571)
      	at org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer.balanceCluster(StochasticLoadBalancer.java:235)
      	at org.apache.hadoop.hbase.master.HMaster.balance(HMaster.java:1465)
      	at org.apache.hadoop.hbase.master.HMaster.balance(HMaster.java:1505)
      

      Attachments

        1. hbase-10726_v1.patch
          3 kB
          Enis Soztutar

        Issue Links

          Activity

            People

              enis Enis Soztutar
              enis Enis Soztutar
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: