HBASE-16746 The log of “region close” should differ from “region move” (ChiaPing Tsai)

This commit is contained in:
Michael Stack 2016-10-12 16:08:25 -07:00
parent c6289f1976
commit dfb2a800c4
1 changed files with 5 additions and 1 deletions

View File

@ -1348,7 +1348,11 @@ public class RSRpcServices implements HBaseRPCErrorHandler,
final String encodedRegionName = ProtobufUtil.getRegionEncodedName(request.getRegion()); final String encodedRegionName = ProtobufUtil.getRegionEncodedName(request.getRegion());
requestCount.increment(); requestCount.increment();
if (sn == null) {
LOG.info("Close " + encodedRegionName + " without moving");
} else {
LOG.info("Close " + encodedRegionName + ", moving to " + sn); LOG.info("Close " + encodedRegionName + ", moving to " + sn);
}
boolean closed = regionServer.closeRegion(encodedRegionName, false, sn); boolean closed = regionServer.closeRegion(encodedRegionName, false, sn);
CloseRegionResponse.Builder builder = CloseRegionResponse.newBuilder().setClosed(closed); CloseRegionResponse.Builder builder = CloseRegionResponse.newBuilder().setClosed(closed);
return builder.build(); return builder.build();