HBASE-16746 The log of “region close” should differ from “region move” (ChiaPing Tsai)
This commit is contained in:
parent
c6289f1976
commit
dfb2a800c4
|
@ -1348,7 +1348,11 @@ public class RSRpcServices implements HBaseRPCErrorHandler,
|
|||
final String encodedRegionName = ProtobufUtil.getRegionEncodedName(request.getRegion());
|
||||
|
||||
requestCount.increment();
|
||||
LOG.info("Close " + encodedRegionName + ", moving to " + sn);
|
||||
if (sn == null) {
|
||||
LOG.info("Close " + encodedRegionName + " without moving");
|
||||
} else {
|
||||
LOG.info("Close " + encodedRegionName + ", moving to " + sn);
|
||||
}
|
||||
boolean closed = regionServer.closeRegion(encodedRegionName, false, sn);
|
||||
CloseRegionResponse.Builder builder = CloseRegionResponse.newBuilder().setClosed(closed);
|
||||
return builder.build();
|
||||
|
|
Loading…
Reference in New Issue