HBASE-8790 NullPointerException thrown when stopping regionserver (Liang Xie)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1497171 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2013-06-27 00:58:07 +00:00
parent 0d98bb4d2b
commit c5eea46314
1 changed files with 4 additions and 0 deletions

View File

@ -978,6 +978,10 @@ public class HRegionServer implements ClientProtos.ClientService.BlockingInterfa
void tryRegionServerReport(long reportStartTime, long reportEndTime)
throws IOException {
if (this.rssStub == null) {
// the current server is stopping.
return;
}
ClusterStatusProtos.ServerLoad sl = buildServerLoad(reportStartTime, reportEndTime);
try {
RegionServerReportRequest.Builder request = RegionServerReportRequest.newBuilder();