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

The table.jsp cost long time to load if the table include closed regions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.4.0
    • UI
    • None

    Description

      The reason is that, in order to get the compaction state of table, we need to iterate all regions and call getRegionInfo, the default timeout for rpc is 5000ms, so if there exists closed reigons, this line will be blocked for long time.

      CompactionState compactionState = admin.getCompactionState(table.getName()).get();

      The solution in this patch is to add compaction state to RegionMetrics, so when getting the compaction state, we could use the in memory state instead of doing rpc.

      Affect branch-2+, in branch-1 it will display exception stack info immediately.

      Attachments

        Activity

          People

            filtertip Zheng Wang
            filtertip Zheng Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: