package kvrpcpb

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

enum Action

kvrpcpb.proto:220

Used in: CheckTxnStatusResponse

message BatchRollbackRequest

kvrpcpb.proto:144

Rollback an un-committed transaction. Will fail if the transaction has already been committed or keys are locked by a different transaction. If the keys were never locked, no action is needed but it is not an error. If successful all keys will be unlocked and all uncommitted values removed.

Used as request type in: tinykvpb.TinyKv.KvBatchRollback

message BatchRollbackResponse

kvrpcpb.proto:151

Empty if the rollback is successful.

Used as response type in: tinykvpb.TinyKv.KvBatchRollback

message CheckTxnStatusRequest

kvrpcpb.proto:161

CheckTxnStatus reports on the status of a transaction and may take action to rollback expired locks. If the transaction has previously been rolled back or committed, return that information. If the TTL of the transaction is exhausted, abort that transaction and roll back the primary lock. Otherwise, returns the TTL information.

Used as request type in: tinykvpb.TinyKv.KvCheckTxnStatus

message CheckTxnStatusResponse

kvrpcpb.proto:168

Used as response type in: tinykvpb.TinyKv.KvCheckTxnStatus

message CommitRequest

kvrpcpb.proto:108

Commit is the second phase of 2pc. The client must have successfully prewritten the transaction to all nodes. If all keys are locked by the given transaction, then the commit should succeed. If any keys are locked by a different transaction or are not locked at all (rolled back or expired), the commit fails.

Used as request type in: tinykvpb.TinyKv.KvCommit

message CommitResponse

kvrpcpb.proto:120

Empty if the commit is successful.

Used as response type in: tinykvpb.TinyKv.KvCommit

message Context

kvrpcpb.proto:255

Miscellaneous data present in each request.

Used in: coprocessor.Request, BatchRollbackRequest, CheckTxnStatusRequest, CommitRequest, GetRequest, PrewriteRequest, RawDeleteRequest, RawGetRequest, RawPutRequest, RawScanRequest, ResolveLockRequest, ScanRequest

message GetRequest

kvrpcpb.proto:70

Read the value of a key at the given time.

Used as request type in: tinykvpb.TinyKv.KvGet

message GetResponse

kvrpcpb.proto:76

Used as response type in: tinykvpb.TinyKv.KvGet

message KeyError

kvrpcpb.proto:233

Many responses can include a KeyError for some problem with one of the requested key. Only one field is set and it indicates what the client should do in response.

Used in: BatchRollbackResponse, CommitResponse, GetResponse, KvPair, PrewriteResponse, ResolveLockResponse

message KvPair

kvrpcpb.proto:200

Either a key/value pair or an error for a particular key.

Used in: RawScanResponse, ScanResponse

message LockInfo

kvrpcpb.proto:240

Used in: coprocessor.Response, KeyError

message Mutation

kvrpcpb.proto:214

Used in: PrewriteRequest

enum Op

kvrpcpb.proto:206

Used in: Mutation

message PrewriteRequest

kvrpcpb.proto:88

Prewrite is the first phase of two phase commit. A prewrite commit contains all the writes (mutations) which a client would like to make as part of a transaction. The request succeeds if none of the keys are locked. In that case all those keys will be locked. If the prewrite fails, no changes are made to the DB.

Used as request type in: tinykvpb.TinyKv.KvPrewrite

message PrewriteResponse

kvrpcpb.proto:98

Empty if the prewrite is successful.

Used as response type in: tinykvpb.TinyKv.KvPrewrite

message RawDeleteRequest

kvrpcpb.proto:39

Used as request type in: tinykvpb.TinyKv.RawDelete

message RawDeleteResponse

kvrpcpb.proto:45

Used as response type in: tinykvpb.TinyKv.RawDelete

message RawGetRequest

kvrpcpb.proto:13

Raw commands.

Used as request type in: tinykvpb.TinyKv.RawGet

message RawGetResponse

kvrpcpb.proto:19

Used as response type in: tinykvpb.TinyKv.RawGet

message RawPutRequest

kvrpcpb.proto:27

Used as request type in: tinykvpb.TinyKv.RawPut

message RawPutResponse

kvrpcpb.proto:34

Used as response type in: tinykvpb.TinyKv.RawPut

message RawScanRequest

kvrpcpb.proto:50

Used as request type in: tinykvpb.TinyKv.RawScan

message RawScanResponse

kvrpcpb.proto:59

Used as response type in: tinykvpb.TinyKv.RawScan

message ResolveLockRequest

kvrpcpb.proto:185

Resolve lock will find all locks belonging to the transaction with the given start timestamp. If commit_version is 0, TinyKV will rollback all locks. If commit_version is greater than 0 it will commit those locks with the given commit timestamp. The client will make a resolve lock request for all secondary keys once it has successfully committed or rolled back the primary key.

Used as request type in: tinykvpb.TinyKv.KvResolveLock

message ResolveLockResponse

kvrpcpb.proto:192

Empty if the lock is resolved successfully.

Used as response type in: tinykvpb.TinyKv.KvResolveLock

message ScanRequest

kvrpcpb.proto:126

Read multiple values from the DB.

Used as request type in: tinykvpb.TinyKv.KvScan

message ScanResponse

kvrpcpb.proto:134

Used as response type in: tinykvpb.TinyKv.KvScan

message WriteConflict

kvrpcpb.proto:247

Used in: KeyError