public static final class Kvrpcpb.CheckTxnStatusRequest extends com.google.protobuf.GeneratedMessageV3 implements Kvrpcpb.CheckTxnStatusRequestOrBuilder
CheckTxnStatusRequest checks the status of a transaction. If the transaction is rollbacked/committed, return that result. If the TTL of the transaction is exhausted, abort that transaction and inform the caller. Otherwise, returns the TTL information for the transaction. CheckTxnStatusRequest may also push forward the minCommitTS of a large transaction.Protobuf type
kvrpcpb.CheckTxnStatusRequest| Modifier and Type | Class and Description |
|---|---|
static class |
Kvrpcpb.CheckTxnStatusRequest.Builder
CheckTxnStatusRequest checks the status of a transaction.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CALLER_START_TS_FIELD_NUMBER |
static int |
CONTEXT_FIELD_NUMBER |
static int |
CURRENT_TS_FIELD_NUMBER |
static int |
FORCE_SYNC_COMMIT_FIELD_NUMBER |
static int |
LOCK_TS_FIELD_NUMBER |
static int |
PRIMARY_KEY_FIELD_NUMBER |
static int |
RESOLVING_PESSIMISTIC_LOCK_FIELD_NUMBER |
static int |
ROLLBACK_IF_NOT_EXIST_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getCallerStartTs()
The start timestamp of the transaction which this request is part of.
|
Kvrpcpb.Context |
getContext()
.kvrpcpb.Context context = 1; |
Kvrpcpb.ContextOrBuilder |
getContextOrBuilder()
.kvrpcpb.Context context = 1; |
long |
getCurrentTs()
The client must specify the current time to TiKV using this timestamp.
|
static Kvrpcpb.CheckTxnStatusRequest |
getDefaultInstance() |
Kvrpcpb.CheckTxnStatusRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getForceSyncCommit()
This field is set to true only if the transaction is known to fall back from async commit.
|
long |
getLockTs()
Starting timestamp of the transaction being checked.
|
com.google.protobuf.Parser<Kvrpcpb.CheckTxnStatusRequest> |
getParserForType() |
com.google.protobuf.ByteString |
getPrimaryKey()
Primary key and lock ts together to locate the primary lock of a transaction.
|
boolean |
getResolvingPessimisticLock()
If the check request is used to resolve or decide the transaction status for a input pessimistic
lock, the transaction status could not be decided if the primary lock is pessimistic too and
it's still uncertain.
|
boolean |
getRollbackIfNotExist()
If true, then TiKV will leave a rollback tombstone in the write CF for `primary_key`, even if
that key is not locked.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasContext()
.kvrpcpb.Context context = 1; |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Kvrpcpb.CheckTxnStatusRequest.Builder |
newBuilder() |
static Kvrpcpb.CheckTxnStatusRequest.Builder |
newBuilder(Kvrpcpb.CheckTxnStatusRequest prototype) |
Kvrpcpb.CheckTxnStatusRequest.Builder |
newBuilderForType() |
protected Kvrpcpb.CheckTxnStatusRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Kvrpcpb.CheckTxnStatusRequest |
parseDelimitedFrom(InputStream input) |
static Kvrpcpb.CheckTxnStatusRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(byte[] data) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(ByteBuffer data) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(com.google.protobuf.ByteString data) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(InputStream input) |
static Kvrpcpb.CheckTxnStatusRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Kvrpcpb.CheckTxnStatusRequest> |
parser() |
Kvrpcpb.CheckTxnStatusRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CONTEXT_FIELD_NUMBER
public static final int PRIMARY_KEY_FIELD_NUMBER
public static final int LOCK_TS_FIELD_NUMBER
public static final int CALLER_START_TS_FIELD_NUMBER
public static final int CURRENT_TS_FIELD_NUMBER
public static final int ROLLBACK_IF_NOT_EXIST_FIELD_NUMBER
public static final int FORCE_SYNC_COMMIT_FIELD_NUMBER
public static final int RESOLVING_PESSIMISTIC_LOCK_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasContext()
.kvrpcpb.Context context = 1;hasContext in interface Kvrpcpb.CheckTxnStatusRequestOrBuilderpublic Kvrpcpb.Context getContext()
.kvrpcpb.Context context = 1;getContext in interface Kvrpcpb.CheckTxnStatusRequestOrBuilderpublic Kvrpcpb.ContextOrBuilder getContextOrBuilder()
.kvrpcpb.Context context = 1;getContextOrBuilder in interface Kvrpcpb.CheckTxnStatusRequestOrBuilderpublic com.google.protobuf.ByteString getPrimaryKey()
Primary key and lock ts together to locate the primary lock of a transaction.
bytes primary_key = 2;getPrimaryKey in interface Kvrpcpb.CheckTxnStatusRequestOrBuilderpublic long getLockTs()
Starting timestamp of the transaction being checked.
uint64 lock_ts = 3;getLockTs in interface Kvrpcpb.CheckTxnStatusRequestOrBuilderpublic long getCallerStartTs()
The start timestamp of the transaction which this request is part of.
uint64 caller_start_ts = 4;getCallerStartTs in interface Kvrpcpb.CheckTxnStatusRequestOrBuilderpublic long getCurrentTs()
The client must specify the current time to TiKV using this timestamp. It is used to check TTL timeouts. It may be inaccurate.
uint64 current_ts = 5;getCurrentTs in interface Kvrpcpb.CheckTxnStatusRequestOrBuilderpublic boolean getRollbackIfNotExist()
If true, then TiKV will leave a rollback tombstone in the write CF for `primary_key`, even if that key is not locked.
bool rollback_if_not_exist = 6;getRollbackIfNotExist in interface Kvrpcpb.CheckTxnStatusRequestOrBuilderpublic boolean getForceSyncCommit()
This field is set to true only if the transaction is known to fall back from async commit. Then, CheckTxnStatus treats the transaction as non-async-commit even if the use_async_commit field in the primary lock is true.
bool force_sync_commit = 7;getForceSyncCommit in interface Kvrpcpb.CheckTxnStatusRequestOrBuilderpublic boolean getResolvingPessimisticLock()
If the check request is used to resolve or decide the transaction status for a input pessimistic lock, the transaction status could not be decided if the primary lock is pessimistic too and it's still uncertain.
bool resolving_pessimistic_lock = 8;getResolvingPessimisticLock in interface Kvrpcpb.CheckTxnStatusRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Kvrpcpb.CheckTxnStatusRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Kvrpcpb.CheckTxnStatusRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Kvrpcpb.CheckTxnStatusRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Kvrpcpb.CheckTxnStatusRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Kvrpcpb.CheckTxnStatusRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Kvrpcpb.CheckTxnStatusRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Kvrpcpb.CheckTxnStatusRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static Kvrpcpb.CheckTxnStatusRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Kvrpcpb.CheckTxnStatusRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Kvrpcpb.CheckTxnStatusRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Kvrpcpb.CheckTxnStatusRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Kvrpcpb.CheckTxnStatusRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Kvrpcpb.CheckTxnStatusRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Kvrpcpb.CheckTxnStatusRequest.Builder newBuilder()
public static Kvrpcpb.CheckTxnStatusRequest.Builder newBuilder(Kvrpcpb.CheckTxnStatusRequest prototype)
public Kvrpcpb.CheckTxnStatusRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Kvrpcpb.CheckTxnStatusRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Kvrpcpb.CheckTxnStatusRequest getDefaultInstance()
public static com.google.protobuf.Parser<Kvrpcpb.CheckTxnStatusRequest> parser()
public com.google.protobuf.Parser<Kvrpcpb.CheckTxnStatusRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Kvrpcpb.CheckTxnStatusRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 PingCAP. All rights reserved.