public static final class Pdpb.RegionHeartbeatResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Pdpb.RegionHeartbeatResponse.Builder> implements Pdpb.RegionHeartbeatResponseOrBuilder
pdpb.RegionHeartbeatResponse
Modifier and Type | Method and Description |
---|---|
Pdpb.RegionHeartbeatResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Pdpb.RegionHeartbeatResponse |
build() |
Pdpb.RegionHeartbeatResponse |
buildPartial() |
Pdpb.RegionHeartbeatResponse.Builder |
clear() |
Pdpb.RegionHeartbeatResponse.Builder |
clearChangePeer()
Notice, Pd only allows handling reported epoch >= current pd's.
|
Pdpb.RegionHeartbeatResponse.Builder |
clearChangePeerV2()
Multiple change peer operations atomically.
|
Pdpb.RegionHeartbeatResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Pdpb.RegionHeartbeatResponse.Builder |
clearHeader()
.pdpb.ResponseHeader header = 1; |
Pdpb.RegionHeartbeatResponse.Builder |
clearMerge()
.pdpb.Merge merge = 7; |
Pdpb.RegionHeartbeatResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Pdpb.RegionHeartbeatResponse.Builder |
clearRegionEpoch()
.metapb.RegionEpoch region_epoch = 5; |
Pdpb.RegionHeartbeatResponse.Builder |
clearRegionId()
ID of the region
|
Pdpb.RegionHeartbeatResponse.Builder |
clearSplitRegion()
PD sends split_region to let TiKV split a region into two regions.
|
Pdpb.RegionHeartbeatResponse.Builder |
clearTargetPeer()
Leader of the region at the moment of the corresponding request was made.
|
Pdpb.RegionHeartbeatResponse.Builder |
clearTransferLeader()
Pd can return transfer_leader to let TiKV does leader transfer itself.
|
Pdpb.RegionHeartbeatResponse.Builder |
clone() |
Pdpb.ChangePeer |
getChangePeer()
Notice, Pd only allows handling reported epoch >= current pd's.
|
Pdpb.ChangePeer.Builder |
getChangePeerBuilder()
Notice, Pd only allows handling reported epoch >= current pd's.
|
Pdpb.ChangePeerOrBuilder |
getChangePeerOrBuilder()
Notice, Pd only allows handling reported epoch >= current pd's.
|
Pdpb.ChangePeerV2 |
getChangePeerV2()
Multiple change peer operations atomically.
|
Pdpb.ChangePeerV2.Builder |
getChangePeerV2Builder()
Multiple change peer operations atomically.
|
Pdpb.ChangePeerV2OrBuilder |
getChangePeerV2OrBuilder()
Multiple change peer operations atomically.
|
Pdpb.RegionHeartbeatResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Pdpb.ResponseHeader |
getHeader()
.pdpb.ResponseHeader header = 1; |
Pdpb.ResponseHeader.Builder |
getHeaderBuilder()
.pdpb.ResponseHeader header = 1; |
Pdpb.ResponseHeaderOrBuilder |
getHeaderOrBuilder()
.pdpb.ResponseHeader header = 1; |
Pdpb.Merge |
getMerge()
.pdpb.Merge merge = 7; |
Pdpb.Merge.Builder |
getMergeBuilder()
.pdpb.Merge merge = 7; |
Pdpb.MergeOrBuilder |
getMergeOrBuilder()
.pdpb.Merge merge = 7; |
Metapb.RegionEpoch |
getRegionEpoch()
.metapb.RegionEpoch region_epoch = 5; |
Metapb.RegionEpoch.Builder |
getRegionEpochBuilder()
.metapb.RegionEpoch region_epoch = 5; |
Metapb.RegionEpochOrBuilder |
getRegionEpochOrBuilder()
.metapb.RegionEpoch region_epoch = 5; |
long |
getRegionId()
ID of the region
|
Pdpb.SplitRegion |
getSplitRegion()
PD sends split_region to let TiKV split a region into two regions.
|
Pdpb.SplitRegion.Builder |
getSplitRegionBuilder()
PD sends split_region to let TiKV split a region into two regions.
|
Pdpb.SplitRegionOrBuilder |
getSplitRegionOrBuilder()
PD sends split_region to let TiKV split a region into two regions.
|
Metapb.Peer |
getTargetPeer()
Leader of the region at the moment of the corresponding request was made.
|
Metapb.Peer.Builder |
getTargetPeerBuilder()
Leader of the region at the moment of the corresponding request was made.
|
Metapb.PeerOrBuilder |
getTargetPeerOrBuilder()
Leader of the region at the moment of the corresponding request was made.
|
Pdpb.TransferLeader |
getTransferLeader()
Pd can return transfer_leader to let TiKV does leader transfer itself.
|
Pdpb.TransferLeader.Builder |
getTransferLeaderBuilder()
Pd can return transfer_leader to let TiKV does leader transfer itself.
|
Pdpb.TransferLeaderOrBuilder |
getTransferLeaderOrBuilder()
Pd can return transfer_leader to let TiKV does leader transfer itself.
|
boolean |
hasChangePeer()
Notice, Pd only allows handling reported epoch >= current pd's.
|
boolean |
hasChangePeerV2()
Multiple change peer operations atomically.
|
boolean |
hasHeader()
.pdpb.ResponseHeader header = 1; |
boolean |
hasMerge()
.pdpb.Merge merge = 7; |
boolean |
hasRegionEpoch()
.metapb.RegionEpoch region_epoch = 5; |
boolean |
hasSplitRegion()
PD sends split_region to let TiKV split a region into two regions.
|
boolean |
hasTargetPeer()
Leader of the region at the moment of the corresponding request was made.
|
boolean |
hasTransferLeader()
Pd can return transfer_leader to let TiKV does leader transfer itself.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Pdpb.RegionHeartbeatResponse.Builder |
mergeChangePeer(Pdpb.ChangePeer value)
Notice, Pd only allows handling reported epoch >= current pd's.
|
Pdpb.RegionHeartbeatResponse.Builder |
mergeChangePeerV2(Pdpb.ChangePeerV2 value)
Multiple change peer operations atomically.
|
Pdpb.RegionHeartbeatResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Pdpb.RegionHeartbeatResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
Pdpb.RegionHeartbeatResponse.Builder |
mergeFrom(Pdpb.RegionHeartbeatResponse other) |
Pdpb.RegionHeartbeatResponse.Builder |
mergeHeader(Pdpb.ResponseHeader value)
.pdpb.ResponseHeader header = 1; |
Pdpb.RegionHeartbeatResponse.Builder |
mergeMerge(Pdpb.Merge value)
.pdpb.Merge merge = 7; |
Pdpb.RegionHeartbeatResponse.Builder |
mergeRegionEpoch(Metapb.RegionEpoch value)
.metapb.RegionEpoch region_epoch = 5; |
Pdpb.RegionHeartbeatResponse.Builder |
mergeSplitRegion(Pdpb.SplitRegion value)
PD sends split_region to let TiKV split a region into two regions.
|
Pdpb.RegionHeartbeatResponse.Builder |
mergeTargetPeer(Metapb.Peer value)
Leader of the region at the moment of the corresponding request was made.
|
Pdpb.RegionHeartbeatResponse.Builder |
mergeTransferLeader(Pdpb.TransferLeader value)
Pd can return transfer_leader to let TiKV does leader transfer itself.
|
Pdpb.RegionHeartbeatResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Pdpb.RegionHeartbeatResponse.Builder |
setChangePeer(Pdpb.ChangePeer.Builder builderForValue)
Notice, Pd only allows handling reported epoch >= current pd's.
|
Pdpb.RegionHeartbeatResponse.Builder |
setChangePeer(Pdpb.ChangePeer value)
Notice, Pd only allows handling reported epoch >= current pd's.
|
Pdpb.RegionHeartbeatResponse.Builder |
setChangePeerV2(Pdpb.ChangePeerV2.Builder builderForValue)
Multiple change peer operations atomically.
|
Pdpb.RegionHeartbeatResponse.Builder |
setChangePeerV2(Pdpb.ChangePeerV2 value)
Multiple change peer operations atomically.
|
Pdpb.RegionHeartbeatResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Pdpb.RegionHeartbeatResponse.Builder |
setHeader(Pdpb.ResponseHeader.Builder builderForValue)
.pdpb.ResponseHeader header = 1; |
Pdpb.RegionHeartbeatResponse.Builder |
setHeader(Pdpb.ResponseHeader value)
.pdpb.ResponseHeader header = 1; |
Pdpb.RegionHeartbeatResponse.Builder |
setMerge(Pdpb.Merge.Builder builderForValue)
.pdpb.Merge merge = 7; |
Pdpb.RegionHeartbeatResponse.Builder |
setMerge(Pdpb.Merge value)
.pdpb.Merge merge = 7; |
Pdpb.RegionHeartbeatResponse.Builder |
setRegionEpoch(Metapb.RegionEpoch.Builder builderForValue)
.metapb.RegionEpoch region_epoch = 5; |
Pdpb.RegionHeartbeatResponse.Builder |
setRegionEpoch(Metapb.RegionEpoch value)
.metapb.RegionEpoch region_epoch = 5; |
Pdpb.RegionHeartbeatResponse.Builder |
setRegionId(long value)
ID of the region
|
Pdpb.RegionHeartbeatResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Pdpb.RegionHeartbeatResponse.Builder |
setSplitRegion(Pdpb.SplitRegion.Builder builderForValue)
PD sends split_region to let TiKV split a region into two regions.
|
Pdpb.RegionHeartbeatResponse.Builder |
setSplitRegion(Pdpb.SplitRegion value)
PD sends split_region to let TiKV split a region into two regions.
|
Pdpb.RegionHeartbeatResponse.Builder |
setTargetPeer(Metapb.Peer.Builder builderForValue)
Leader of the region at the moment of the corresponding request was made.
|
Pdpb.RegionHeartbeatResponse.Builder |
setTargetPeer(Metapb.Peer value)
Leader of the region at the moment of the corresponding request was made.
|
Pdpb.RegionHeartbeatResponse.Builder |
setTransferLeader(Pdpb.TransferLeader.Builder builderForValue)
Pd can return transfer_leader to let TiKV does leader transfer itself.
|
Pdpb.RegionHeartbeatResponse.Builder |
setTransferLeader(Pdpb.TransferLeader value)
Pd can return transfer_leader to let TiKV does leader transfer itself.
|
Pdpb.RegionHeartbeatResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Pdpb.RegionHeartbeatResponse.Builder>
public Pdpb.RegionHeartbeatResponse.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Pdpb.RegionHeartbeatResponse.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Pdpb.RegionHeartbeatResponse.Builder>
public Pdpb.RegionHeartbeatResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Pdpb.RegionHeartbeatResponse build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Pdpb.RegionHeartbeatResponse buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Pdpb.RegionHeartbeatResponse.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Pdpb.RegionHeartbeatResponse.Builder>
public Pdpb.RegionHeartbeatResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Pdpb.RegionHeartbeatResponse.Builder>
public Pdpb.RegionHeartbeatResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Pdpb.RegionHeartbeatResponse.Builder>
public Pdpb.RegionHeartbeatResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Pdpb.RegionHeartbeatResponse.Builder>
public Pdpb.RegionHeartbeatResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Pdpb.RegionHeartbeatResponse.Builder>
public Pdpb.RegionHeartbeatResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Pdpb.RegionHeartbeatResponse.Builder>
public Pdpb.RegionHeartbeatResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Pdpb.RegionHeartbeatResponse.Builder>
public Pdpb.RegionHeartbeatResponse.Builder mergeFrom(Pdpb.RegionHeartbeatResponse other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Pdpb.RegionHeartbeatResponse.Builder>
public Pdpb.RegionHeartbeatResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Pdpb.RegionHeartbeatResponse.Builder>
IOException
public boolean hasHeader()
.pdpb.ResponseHeader header = 1;
hasHeader
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.ResponseHeader getHeader()
.pdpb.ResponseHeader header = 1;
getHeader
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.RegionHeartbeatResponse.Builder setHeader(Pdpb.ResponseHeader value)
.pdpb.ResponseHeader header = 1;
public Pdpb.RegionHeartbeatResponse.Builder setHeader(Pdpb.ResponseHeader.Builder builderForValue)
.pdpb.ResponseHeader header = 1;
public Pdpb.RegionHeartbeatResponse.Builder mergeHeader(Pdpb.ResponseHeader value)
.pdpb.ResponseHeader header = 1;
public Pdpb.RegionHeartbeatResponse.Builder clearHeader()
.pdpb.ResponseHeader header = 1;
public Pdpb.ResponseHeader.Builder getHeaderBuilder()
.pdpb.ResponseHeader header = 1;
public Pdpb.ResponseHeaderOrBuilder getHeaderOrBuilder()
.pdpb.ResponseHeader header = 1;
getHeaderOrBuilder
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public boolean hasChangePeer()
Notice, Pd only allows handling reported epoch >= current pd's. Leader peer reports region status with RegionHeartbeatRequest to pd regularly, pd will determine whether this region should do ChangePeer or not. E,g, max peer number is 3, region A, first only peer 1 in A. 1. Pd region state -> Peers (1), ConfVer (1). 2. Leader peer 1 reports region state to pd, pd finds the peer number is < 3, so first changes its current region state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2. 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2), pd updates its state -> Peers (1, 2), ConfVer (2). 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange finished, pd stills responses ChangePeer Adding 2, of course, we must guarantee the second ChangePeer can't be applied in TiKV.
.pdpb.ChangePeer change_peer = 2;
hasChangePeer
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.ChangePeer getChangePeer()
Notice, Pd only allows handling reported epoch >= current pd's. Leader peer reports region status with RegionHeartbeatRequest to pd regularly, pd will determine whether this region should do ChangePeer or not. E,g, max peer number is 3, region A, first only peer 1 in A. 1. Pd region state -> Peers (1), ConfVer (1). 2. Leader peer 1 reports region state to pd, pd finds the peer number is < 3, so first changes its current region state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2. 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2), pd updates its state -> Peers (1, 2), ConfVer (2). 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange finished, pd stills responses ChangePeer Adding 2, of course, we must guarantee the second ChangePeer can't be applied in TiKV.
.pdpb.ChangePeer change_peer = 2;
getChangePeer
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.RegionHeartbeatResponse.Builder setChangePeer(Pdpb.ChangePeer value)
Notice, Pd only allows handling reported epoch >= current pd's. Leader peer reports region status with RegionHeartbeatRequest to pd regularly, pd will determine whether this region should do ChangePeer or not. E,g, max peer number is 3, region A, first only peer 1 in A. 1. Pd region state -> Peers (1), ConfVer (1). 2. Leader peer 1 reports region state to pd, pd finds the peer number is < 3, so first changes its current region state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2. 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2), pd updates its state -> Peers (1, 2), ConfVer (2). 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange finished, pd stills responses ChangePeer Adding 2, of course, we must guarantee the second ChangePeer can't be applied in TiKV.
.pdpb.ChangePeer change_peer = 2;
public Pdpb.RegionHeartbeatResponse.Builder setChangePeer(Pdpb.ChangePeer.Builder builderForValue)
Notice, Pd only allows handling reported epoch >= current pd's. Leader peer reports region status with RegionHeartbeatRequest to pd regularly, pd will determine whether this region should do ChangePeer or not. E,g, max peer number is 3, region A, first only peer 1 in A. 1. Pd region state -> Peers (1), ConfVer (1). 2. Leader peer 1 reports region state to pd, pd finds the peer number is < 3, so first changes its current region state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2. 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2), pd updates its state -> Peers (1, 2), ConfVer (2). 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange finished, pd stills responses ChangePeer Adding 2, of course, we must guarantee the second ChangePeer can't be applied in TiKV.
.pdpb.ChangePeer change_peer = 2;
public Pdpb.RegionHeartbeatResponse.Builder mergeChangePeer(Pdpb.ChangePeer value)
Notice, Pd only allows handling reported epoch >= current pd's. Leader peer reports region status with RegionHeartbeatRequest to pd regularly, pd will determine whether this region should do ChangePeer or not. E,g, max peer number is 3, region A, first only peer 1 in A. 1. Pd region state -> Peers (1), ConfVer (1). 2. Leader peer 1 reports region state to pd, pd finds the peer number is < 3, so first changes its current region state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2. 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2), pd updates its state -> Peers (1, 2), ConfVer (2). 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange finished, pd stills responses ChangePeer Adding 2, of course, we must guarantee the second ChangePeer can't be applied in TiKV.
.pdpb.ChangePeer change_peer = 2;
public Pdpb.RegionHeartbeatResponse.Builder clearChangePeer()
Notice, Pd only allows handling reported epoch >= current pd's. Leader peer reports region status with RegionHeartbeatRequest to pd regularly, pd will determine whether this region should do ChangePeer or not. E,g, max peer number is 3, region A, first only peer 1 in A. 1. Pd region state -> Peers (1), ConfVer (1). 2. Leader peer 1 reports region state to pd, pd finds the peer number is < 3, so first changes its current region state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2. 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2), pd updates its state -> Peers (1, 2), ConfVer (2). 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange finished, pd stills responses ChangePeer Adding 2, of course, we must guarantee the second ChangePeer can't be applied in TiKV.
.pdpb.ChangePeer change_peer = 2;
public Pdpb.ChangePeer.Builder getChangePeerBuilder()
Notice, Pd only allows handling reported epoch >= current pd's. Leader peer reports region status with RegionHeartbeatRequest to pd regularly, pd will determine whether this region should do ChangePeer or not. E,g, max peer number is 3, region A, first only peer 1 in A. 1. Pd region state -> Peers (1), ConfVer (1). 2. Leader peer 1 reports region state to pd, pd finds the peer number is < 3, so first changes its current region state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2. 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2), pd updates its state -> Peers (1, 2), ConfVer (2). 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange finished, pd stills responses ChangePeer Adding 2, of course, we must guarantee the second ChangePeer can't be applied in TiKV.
.pdpb.ChangePeer change_peer = 2;
public Pdpb.ChangePeerOrBuilder getChangePeerOrBuilder()
Notice, Pd only allows handling reported epoch >= current pd's. Leader peer reports region status with RegionHeartbeatRequest to pd regularly, pd will determine whether this region should do ChangePeer or not. E,g, max peer number is 3, region A, first only peer 1 in A. 1. Pd region state -> Peers (1), ConfVer (1). 2. Leader peer 1 reports region state to pd, pd finds the peer number is < 3, so first changes its current region state -> Peers (1, 2), ConfVer (1), and returns ChangePeer Adding 2. 3. Leader does ChangePeer, then reports Peers (1, 2), ConfVer (2), pd updates its state -> Peers (1, 2), ConfVer (2). 4. Leader may report old Peers (1), ConfVer (1) to pd before ConfChange finished, pd stills responses ChangePeer Adding 2, of course, we must guarantee the second ChangePeer can't be applied in TiKV.
.pdpb.ChangePeer change_peer = 2;
getChangePeerOrBuilder
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public boolean hasTransferLeader()
Pd can return transfer_leader to let TiKV does leader transfer itself.
.pdpb.TransferLeader transfer_leader = 3;
hasTransferLeader
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.TransferLeader getTransferLeader()
Pd can return transfer_leader to let TiKV does leader transfer itself.
.pdpb.TransferLeader transfer_leader = 3;
getTransferLeader
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.RegionHeartbeatResponse.Builder setTransferLeader(Pdpb.TransferLeader value)
Pd can return transfer_leader to let TiKV does leader transfer itself.
.pdpb.TransferLeader transfer_leader = 3;
public Pdpb.RegionHeartbeatResponse.Builder setTransferLeader(Pdpb.TransferLeader.Builder builderForValue)
Pd can return transfer_leader to let TiKV does leader transfer itself.
.pdpb.TransferLeader transfer_leader = 3;
public Pdpb.RegionHeartbeatResponse.Builder mergeTransferLeader(Pdpb.TransferLeader value)
Pd can return transfer_leader to let TiKV does leader transfer itself.
.pdpb.TransferLeader transfer_leader = 3;
public Pdpb.RegionHeartbeatResponse.Builder clearTransferLeader()
Pd can return transfer_leader to let TiKV does leader transfer itself.
.pdpb.TransferLeader transfer_leader = 3;
public Pdpb.TransferLeader.Builder getTransferLeaderBuilder()
Pd can return transfer_leader to let TiKV does leader transfer itself.
.pdpb.TransferLeader transfer_leader = 3;
public Pdpb.TransferLeaderOrBuilder getTransferLeaderOrBuilder()
Pd can return transfer_leader to let TiKV does leader transfer itself.
.pdpb.TransferLeader transfer_leader = 3;
getTransferLeaderOrBuilder
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public long getRegionId()
ID of the region
uint64 region_id = 4;
getRegionId
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.RegionHeartbeatResponse.Builder setRegionId(long value)
ID of the region
uint64 region_id = 4;
value
- The regionId to set.public Pdpb.RegionHeartbeatResponse.Builder clearRegionId()
ID of the region
uint64 region_id = 4;
public boolean hasRegionEpoch()
.metapb.RegionEpoch region_epoch = 5;
hasRegionEpoch
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Metapb.RegionEpoch getRegionEpoch()
.metapb.RegionEpoch region_epoch = 5;
getRegionEpoch
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.RegionHeartbeatResponse.Builder setRegionEpoch(Metapb.RegionEpoch value)
.metapb.RegionEpoch region_epoch = 5;
public Pdpb.RegionHeartbeatResponse.Builder setRegionEpoch(Metapb.RegionEpoch.Builder builderForValue)
.metapb.RegionEpoch region_epoch = 5;
public Pdpb.RegionHeartbeatResponse.Builder mergeRegionEpoch(Metapb.RegionEpoch value)
.metapb.RegionEpoch region_epoch = 5;
public Pdpb.RegionHeartbeatResponse.Builder clearRegionEpoch()
.metapb.RegionEpoch region_epoch = 5;
public Metapb.RegionEpoch.Builder getRegionEpochBuilder()
.metapb.RegionEpoch region_epoch = 5;
public Metapb.RegionEpochOrBuilder getRegionEpochOrBuilder()
.metapb.RegionEpoch region_epoch = 5;
getRegionEpochOrBuilder
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public boolean hasTargetPeer()
Leader of the region at the moment of the corresponding request was made.
.metapb.Peer target_peer = 6;
hasTargetPeer
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Metapb.Peer getTargetPeer()
Leader of the region at the moment of the corresponding request was made.
.metapb.Peer target_peer = 6;
getTargetPeer
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.RegionHeartbeatResponse.Builder setTargetPeer(Metapb.Peer value)
Leader of the region at the moment of the corresponding request was made.
.metapb.Peer target_peer = 6;
public Pdpb.RegionHeartbeatResponse.Builder setTargetPeer(Metapb.Peer.Builder builderForValue)
Leader of the region at the moment of the corresponding request was made.
.metapb.Peer target_peer = 6;
public Pdpb.RegionHeartbeatResponse.Builder mergeTargetPeer(Metapb.Peer value)
Leader of the region at the moment of the corresponding request was made.
.metapb.Peer target_peer = 6;
public Pdpb.RegionHeartbeatResponse.Builder clearTargetPeer()
Leader of the region at the moment of the corresponding request was made.
.metapb.Peer target_peer = 6;
public Metapb.Peer.Builder getTargetPeerBuilder()
Leader of the region at the moment of the corresponding request was made.
.metapb.Peer target_peer = 6;
public Metapb.PeerOrBuilder getTargetPeerOrBuilder()
Leader of the region at the moment of the corresponding request was made.
.metapb.Peer target_peer = 6;
getTargetPeerOrBuilder
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public boolean hasMerge()
.pdpb.Merge merge = 7;
hasMerge
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.Merge getMerge()
.pdpb.Merge merge = 7;
getMerge
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.RegionHeartbeatResponse.Builder setMerge(Pdpb.Merge value)
.pdpb.Merge merge = 7;
public Pdpb.RegionHeartbeatResponse.Builder setMerge(Pdpb.Merge.Builder builderForValue)
.pdpb.Merge merge = 7;
public Pdpb.RegionHeartbeatResponse.Builder mergeMerge(Pdpb.Merge value)
.pdpb.Merge merge = 7;
public Pdpb.RegionHeartbeatResponse.Builder clearMerge()
.pdpb.Merge merge = 7;
public Pdpb.Merge.Builder getMergeBuilder()
.pdpb.Merge merge = 7;
public Pdpb.MergeOrBuilder getMergeOrBuilder()
.pdpb.Merge merge = 7;
getMergeOrBuilder
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public boolean hasSplitRegion()
PD sends split_region to let TiKV split a region into two regions.
.pdpb.SplitRegion split_region = 8;
hasSplitRegion
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.SplitRegion getSplitRegion()
PD sends split_region to let TiKV split a region into two regions.
.pdpb.SplitRegion split_region = 8;
getSplitRegion
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.RegionHeartbeatResponse.Builder setSplitRegion(Pdpb.SplitRegion value)
PD sends split_region to let TiKV split a region into two regions.
.pdpb.SplitRegion split_region = 8;
public Pdpb.RegionHeartbeatResponse.Builder setSplitRegion(Pdpb.SplitRegion.Builder builderForValue)
PD sends split_region to let TiKV split a region into two regions.
.pdpb.SplitRegion split_region = 8;
public Pdpb.RegionHeartbeatResponse.Builder mergeSplitRegion(Pdpb.SplitRegion value)
PD sends split_region to let TiKV split a region into two regions.
.pdpb.SplitRegion split_region = 8;
public Pdpb.RegionHeartbeatResponse.Builder clearSplitRegion()
PD sends split_region to let TiKV split a region into two regions.
.pdpb.SplitRegion split_region = 8;
public Pdpb.SplitRegion.Builder getSplitRegionBuilder()
PD sends split_region to let TiKV split a region into two regions.
.pdpb.SplitRegion split_region = 8;
public Pdpb.SplitRegionOrBuilder getSplitRegionOrBuilder()
PD sends split_region to let TiKV split a region into two regions.
.pdpb.SplitRegion split_region = 8;
getSplitRegionOrBuilder
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public boolean hasChangePeerV2()
Multiple change peer operations atomically. Note: PD can use both ChangePeer and ChangePeerV2 at the same time (not in the same RegionHeartbeatResponse). Now, PD use ChangePeerV2 in following scenarios: 1. replacing peers 2. demoting voter directly
.pdpb.ChangePeerV2 change_peer_v2 = 9;
hasChangePeerV2
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.ChangePeerV2 getChangePeerV2()
Multiple change peer operations atomically. Note: PD can use both ChangePeer and ChangePeerV2 at the same time (not in the same RegionHeartbeatResponse). Now, PD use ChangePeerV2 in following scenarios: 1. replacing peers 2. demoting voter directly
.pdpb.ChangePeerV2 change_peer_v2 = 9;
getChangePeerV2
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public Pdpb.RegionHeartbeatResponse.Builder setChangePeerV2(Pdpb.ChangePeerV2 value)
Multiple change peer operations atomically. Note: PD can use both ChangePeer and ChangePeerV2 at the same time (not in the same RegionHeartbeatResponse). Now, PD use ChangePeerV2 in following scenarios: 1. replacing peers 2. demoting voter directly
.pdpb.ChangePeerV2 change_peer_v2 = 9;
public Pdpb.RegionHeartbeatResponse.Builder setChangePeerV2(Pdpb.ChangePeerV2.Builder builderForValue)
Multiple change peer operations atomically. Note: PD can use both ChangePeer and ChangePeerV2 at the same time (not in the same RegionHeartbeatResponse). Now, PD use ChangePeerV2 in following scenarios: 1. replacing peers 2. demoting voter directly
.pdpb.ChangePeerV2 change_peer_v2 = 9;
public Pdpb.RegionHeartbeatResponse.Builder mergeChangePeerV2(Pdpb.ChangePeerV2 value)
Multiple change peer operations atomically. Note: PD can use both ChangePeer and ChangePeerV2 at the same time (not in the same RegionHeartbeatResponse). Now, PD use ChangePeerV2 in following scenarios: 1. replacing peers 2. demoting voter directly
.pdpb.ChangePeerV2 change_peer_v2 = 9;
public Pdpb.RegionHeartbeatResponse.Builder clearChangePeerV2()
Multiple change peer operations atomically. Note: PD can use both ChangePeer and ChangePeerV2 at the same time (not in the same RegionHeartbeatResponse). Now, PD use ChangePeerV2 in following scenarios: 1. replacing peers 2. demoting voter directly
.pdpb.ChangePeerV2 change_peer_v2 = 9;
public Pdpb.ChangePeerV2.Builder getChangePeerV2Builder()
Multiple change peer operations atomically. Note: PD can use both ChangePeer and ChangePeerV2 at the same time (not in the same RegionHeartbeatResponse). Now, PD use ChangePeerV2 in following scenarios: 1. replacing peers 2. demoting voter directly
.pdpb.ChangePeerV2 change_peer_v2 = 9;
public Pdpb.ChangePeerV2OrBuilder getChangePeerV2OrBuilder()
Multiple change peer operations atomically. Note: PD can use both ChangePeer and ChangePeerV2 at the same time (not in the same RegionHeartbeatResponse). Now, PD use ChangePeerV2 in following scenarios: 1. replacing peers 2. demoting voter directly
.pdpb.ChangePeerV2 change_peer_v2 = 9;
getChangePeerV2OrBuilder
in interface Pdpb.RegionHeartbeatResponseOrBuilder
public final Pdpb.RegionHeartbeatResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Pdpb.RegionHeartbeatResponse.Builder>
public final Pdpb.RegionHeartbeatResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Pdpb.RegionHeartbeatResponse.Builder>
Copyright © 2024 PingCAP. All rights reserved.