Description
createMultiRegions and its friends have a problem that leads a bug getting null HRegionInfo from the .META. table in metaScan.
The reason is : After createMultiRegions creates new regions, it deletes old region info from the META table. But some region server may have been openning the regions (though with a very low probability). After the rows of the openning region is completely removed, the region is openned. Then the region server tells the master its server and startCode. The master then write a row of only server address and startCode back to the META. Then a row without HRegionInfo in META table is generated.
Suggestion of fix is not to use this method. Create tables directly with specified start/stop keys.