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:
parent
0d98bb4d2b
commit
c5eea46314
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue