HBASE-13653 Uninitialized HRegionServer#walFactory may result in NullPointerException at region server startup​

This commit is contained in:
tedyu 2015-05-10 07:37:07 -07:00
parent 5a2ca43fa1
commit 7bdacf53f4
1 changed files with 1 additions and 0 deletions

View File

@ -1508,6 +1508,7 @@ public class RSRpcServices implements HBaseRPCErrorHandler,
WarmupRegionResponse response = WarmupRegionResponse.getDefaultInstance(); WarmupRegionResponse response = WarmupRegionResponse.getDefaultInstance();
try { try {
checkOpen();
String encodedName = region.getEncodedName(); String encodedName = region.getEncodedName();
byte[] encodedNameBytes = region.getEncodedNameAsBytes(); byte[] encodedNameBytes = region.getEncodedNameAsBytes();
final Region onlineRegion = regionServer.getFromOnlineRegions(encodedName); final Region onlineRegion = regionServer.getFromOnlineRegions(encodedName);