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

hbck.jsp page loading fails, logs NPE in master log.

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.3
    • 3.0.0-alpha-1, 2.3.3, 2.4.0, 2.2.7
    • hbck
    • None

    Description

      While testing with large data, it is observed that some time hbck page was not accessible and NPE was thrown in log.

       

      【Test step】Excat Steps are not known. Observed this while executing below steps

      1: Test data: 9K regions,~300 issues in my test setup

      2: run hbck_chore and catalogjanitor_run multiple times 

      3: Also run balancer so that region movement is happening.

      4: Observe that HBCK page not available

       

      2020-09-21 20:05:31,706 WARN [qtp1698322791-94] server.HttpChannel: /hbck.jsp
      java.lang.NullPointerException
      at org.apache.hadoop.hbase.generated.master.hbck_jsp.formatServerName(hbck_jsp.java:37)
      at org.apache.hadoop.hbase.generated.master.hbck_jsp._jspService(hbck_jsp.java:144)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:844)

      Attachments

        Issue Links

          Activity

            Seems problem is originating from HbckChore.loadRegionsFromRSReport()
            While populating inconsistent regions, locationInMeta null check is done only for the case where hri.getDeployedOn().size() == 0 for other cases locationInMeta null check is not done.

            To fix the issue, we should do the null check for all the inconsistent region cases.

            arshad.mohammad Mohammad Arshad added a comment - Seems problem is originating from HbckChore.loadRegionsFromRSReport() While populating inconsistent regions, locationInMeta null check is done only for the case where hri.getDeployedOn().size() == 0 for other cases locationInMeta null check is not done. To fix the issue, we should do the null check for all the inconsistent region cases.
            zghao Guanghao Zhang added a comment -

            Pushed to branch-2.2+. Thanks arshad.mohammad for contributing.

            zghao Guanghao Zhang added a comment - Pushed to branch-2.2+. Thanks arshad.mohammad  for contributing.
            hudson Hudson added a comment -

            Results for branch branch-2.3
            build #61 on builds.a.o: +1 overall


            details (if available):

            +1 general checks
            – For more information see general report

            +1 jdk8 hadoop2 checks
            – For more information see jdk8 (hadoop2) report

            +1 jdk8 hadoop3 checks
            – For more information see jdk8 (hadoop3) report

            +1 jdk11 hadoop3 checks
            – For more information see jdk11 report

            +1 source release artifact
            – See build output for details.

            +1 client integration test

            hudson Hudson added a comment - Results for branch branch-2.3 build #61 on builds.a.o : +1 overall details (if available): +1 general checks – For more information see general report +1 jdk8 hadoop2 checks – For more information see jdk8 (hadoop2) report +1 jdk8 hadoop3 checks – For more information see jdk8 (hadoop3) report +1 jdk11 hadoop3 checks – For more information see jdk11 report +1 source release artifact – See build output for details. +1 client integration test
            hudson Hudson added a comment -

            Results for branch branch-2.2
            build #71 on builds.a.o: -1 overall


            details (if available):

            +1 general checks
            – For more information see general report

            +1 jdk8 hadoop2 checks
            – For more information see jdk8 (hadoop2) report

            -1 jdk8 hadoop3 checks
            – For more information see jdk8 (hadoop3) report

            +1 source release artifact
            – See build output for details.

            -1 client integration test
            --Failed when running client tests on top of Hadoop 2. see log for details. (note that this means we didn't run on Hadoop 3)

            hudson Hudson added a comment - Results for branch branch-2.2 build #71 on builds.a.o : -1 overall details (if available): +1 general checks – For more information see general report +1 jdk8 hadoop2 checks – For more information see jdk8 (hadoop2) report -1 jdk8 hadoop3 checks – For more information see jdk8 (hadoop3) report +1 source release artifact – See build output for details. -1 client integration test --Failed when running client tests on top of Hadoop 2. see log for details . (note that this means we didn't run on Hadoop 3)
            hudson Hudson added a comment -

            Results for branch branch-2
            build #58 on builds.a.o: -1 overall


            details (if available):

            +1 general checks
            – For more information see general report

            -1 jdk8 hadoop2 checks
            – For more information see jdk8 (hadoop2) report

            -1 jdk8 hadoop3 checks
            – For more information see jdk8 (hadoop3) report

            +1 jdk11 hadoop3 checks
            – For more information see jdk11 report

            +1 source release artifact
            – See build output for details.

            +1 client integration test

            hudson Hudson added a comment - Results for branch branch-2 build #58 on builds.a.o : -1 overall details (if available): +1 general checks – For more information see general report -1 jdk8 hadoop2 checks – For more information see jdk8 (hadoop2) report -1 jdk8 hadoop3 checks – For more information see jdk8 (hadoop3) report +1 jdk11 hadoop3 checks – For more information see jdk11 report +1 source release artifact – See build output for details. +1 client integration test
            hudson Hudson added a comment -

            Results for branch master
            build #70 on builds.a.o: -1 overall


            details (if available):

            +1 general checks
            – For more information see general report

            -1 jdk8 hadoop3 checks
            – For more information see jdk8 (hadoop3) report

            -1 jdk11 hadoop3 checks
            – For more information see jdk11 report

            +1 source release artifact
            – See build output for details.

            +1 client integration test

            hudson Hudson added a comment - Results for branch master build #70 on builds.a.o : -1 overall details (if available): +1 general checks – For more information see general report -1 jdk8 hadoop3 checks – For more information see jdk8 (hadoop3) report -1 jdk11 hadoop3 checks – For more information see jdk11 report +1 source release artifact – See build output for details. +1 client integration test
            arshad.mohammad Mohammad Arshad added a comment - - edited

            Thanks a00408367 for reporting the issue.
            Thanks zhangduo, pankaj72981, vjasani for reviewing.
            Thanks zghao for reviewing and merging

            arshad.mohammad Mohammad Arshad added a comment - - edited Thanks a00408367 for reporting the issue. Thanks zhangduo , pankaj72981 , vjasani for reviewing. Thanks zghao for reviewing and merging

            People

              arshad.mohammad Mohammad Arshad
              a00408367 Ajeet Rai
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: