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

RegionSizeCalculator throws NPE when regions are in transition

    XMLWordPrintableJSON

Details

    Description

      When a region is in transition, it may briefly have a null ServerName in meta. The RegionSizeCalculator calls RegionLocator.getAllRegionLocations() and does not handle the possibility that a RegionLocation.getServerName() could be null. The ServerName is eventually passed into an Admin call, which results in an NPE.

      This has come up in other contexts. For example, taking a look at getAllRegionLocations() impl, we have checks to ensure that we don't call null server names. We need to similarly handle the possibility of nulls in RegionSizeCalculator.

      Attachments

        Issue Links

          Activity

            People

              aalhour Ahmad Alhour
              bbeaudreault Bryan Beaudreault
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: