HBASE-27844 changed type names to avoid conflicts with built-in types (#5223)
Co-authored-by: huiruan <876107431@qq.com>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit d49df8b7a9
)
This commit is contained in:
parent
cf8e6aa172
commit
7140c29166
|
@ -226,7 +226,6 @@ import org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.Reg
|
||||||
import org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.RegionStoreSequenceIds;
|
import org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.RegionStoreSequenceIds;
|
||||||
import org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.UserLoad;
|
import org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.UserLoad;
|
||||||
import org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.Coprocessor;
|
import org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.Coprocessor;
|
||||||
import org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.Coprocessor.Builder;
|
|
||||||
import org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.NameStringPair;
|
import org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.NameStringPair;
|
||||||
import org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionServerInfo;
|
import org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionServerInfo;
|
||||||
import org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionSpecifier;
|
import org.apache.hadoop.hbase.shaded.protobuf.generated.HBaseProtos.RegionSpecifier;
|
||||||
|
@ -1457,7 +1456,7 @@ public class HRegionServer extends Thread
|
||||||
serverLoad.setUsedHeapMB((int) (usedMemory / 1024 / 1024));
|
serverLoad.setUsedHeapMB((int) (usedMemory / 1024 / 1024));
|
||||||
serverLoad.setMaxHeapMB((int) (maxMemory / 1024 / 1024));
|
serverLoad.setMaxHeapMB((int) (maxMemory / 1024 / 1024));
|
||||||
Set<String> coprocessors = getWAL(null).getCoprocessorHost().getCoprocessors();
|
Set<String> coprocessors = getWAL(null).getCoprocessorHost().getCoprocessors();
|
||||||
Builder coprocessorBuilder = Coprocessor.newBuilder();
|
Coprocessor.Builder coprocessorBuilder = Coprocessor.newBuilder();
|
||||||
for (String coprocessor : coprocessors) {
|
for (String coprocessor : coprocessors) {
|
||||||
serverLoad.addCoprocessors(coprocessorBuilder.setName(coprocessor).build());
|
serverLoad.addCoprocessors(coprocessorBuilder.setName(coprocessor).build());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue