util

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogTxn1PCCommitCompleted added in v0.6.0

func LogTxn1PCCommitCompleted(
	logger *zap.Logger,
	txnMeta txn.TxnMeta)

LogTxn1PCCommitCompleted log Txn 1pc commit completed

func LogTxnCommit added in v0.6.0

func LogTxnCommit(
	logger *zap.Logger,
	txnMeta txn.TxnMeta)

LogTxnCommit log txn commit

func LogTxnCommitOnInvalidStatus added in v0.6.0

func LogTxnCommitOnInvalidStatus(
	logger *zap.Logger,
	txnMeta txn.TxnMeta)

LogTxnCommitOnInvalidStatus log Txn commit on invalid txn status.

func LogTxnCommittingCompleted added in v0.6.0

func LogTxnCommittingCompleted(
	logger *zap.Logger,
	txnMeta txn.TxnMeta)

LogTxnCommittingCompleted log Txn Committing completed on coordinator failed

func LogTxnCommittingFailed added in v0.6.0

func LogTxnCommittingFailed(
	logger *zap.Logger,
	txnMeta txn.TxnMeta,
	err error)

LogTxnCommittingFailed log Txn Committing failed on coordinator failed

func LogTxnCreateOn added in v0.6.0

func LogTxnCreateOn(
	logger *zap.Logger,
	txnMeta txn.TxnMeta,
	dn metadata.DNShard)

LogTxnCreateOn log Txn create on dn shard.

func LogTxnCreated added in v0.6.0

func LogTxnCreated(
	logger *zap.Logger,
	txnMeta txn.TxnMeta)

LogTxnCreated log txn created

func LogTxnHandleRequest added in v0.6.0

func LogTxnHandleRequest(
	logger *zap.Logger,
	request *txn.TxnRequest)

LogTxnHandleRequest log txn handle request

func LogTxnHandleResult added in v0.6.0

func LogTxnHandleResult(
	logger *zap.Logger,
	response *txn.TxnResponse)

LogTxnHandleResult log txn handle request

func LogTxnNotFoundOn added in v0.6.0

func LogTxnNotFoundOn(
	logger *zap.Logger,
	txnMeta txn.TxnMeta,
	dn metadata.DNShard)

LogTxnReadFailed log Txn read failed.

func LogTxnParallelPrepareCompleted added in v0.6.0

func LogTxnParallelPrepareCompleted(
	logger *zap.Logger,
	txnMeta txn.TxnMeta)

LogTxnParallelPrepareCompleted log Txn parallel prepare completed

func LogTxnParallelPrepareFailed added in v0.6.0

func LogTxnParallelPrepareFailed(
	logger *zap.Logger,
	txnMeta txn.TxnMeta,
	err error)

LogTxnParallelPrepareFailed log Txn parallel prepare failed

func LogTxnPrepareCompletedOn added in v0.6.0

func LogTxnPrepareCompletedOn(
	logger *zap.Logger,
	txnMeta txn.TxnMeta,
	dn metadata.DNShard,
	preparedTS timestamp.Timestamp)

LogTxnPrepareCompletedOn log Tx prepare completed on DNShard

func LogTxnPrepareFailedOn added in v0.6.0

func LogTxnPrepareFailedOn(
	logger *zap.Logger,
	txnMeta txn.TxnMeta,
	dn metadata.DNShard,
	err *txn.TxnError)

LogTxnPrepareFailedOn log Tx prepare failed on DNShard

func LogTxnRead added in v0.6.0

func LogTxnRead(
	logger *zap.Logger,
	txnMeta txn.TxnMeta)

LogTxnRead log txn read

func LogTxnReadBlockedByUncommittedTxns added in v0.6.0

func LogTxnReadBlockedByUncommittedTxns(
	logger *zap.Logger,
	txnMeta txn.TxnMeta,
	waitTxns [][]byte)

LogTxnReadBlockedByUncommittedTxns log Txn read blocked by other txns

func LogTxnReadFailed added in v0.6.0

func LogTxnReadFailed(
	logger *zap.Logger,
	txnMeta txn.TxnMeta,
	err error)

LogTxnReadFailed log Txn read failed.

func LogTxnReceivedResponses added in v0.6.0

func LogTxnReceivedResponses(
	logger *zap.Logger,
	responses []txn.TxnResponse)

LogTxnReceivedResponses log received txn responses

func LogTxnRollback added in v0.6.0

func LogTxnRollback(
	logger *zap.Logger,
	txnMeta txn.TxnMeta)

LogTxnRollback log txn rollback

func LogTxnRollbackCompleted added in v0.6.0

func LogTxnRollbackCompleted(
	logger *zap.Logger,
	txnMeta txn.TxnMeta)

LogTxnRollbackCompleted log Txn rollback completed

func LogTxnSendRequests added in v0.6.0

func LogTxnSendRequests(
	logger *zap.Logger,
	requests []txn.TxnRequest)

LogTxnSendRequests log txn send txn requests

func LogTxnSendRequestsFailed added in v0.6.0

func LogTxnSendRequestsFailed(
	logger *zap.Logger,
	requests []txn.TxnRequest,
	err error)

LogTxnSendRequestsFailed log txn send txn requests failed

func LogTxnStart1PCCommit added in v0.6.0

func LogTxnStart1PCCommit(
	logger *zap.Logger,
	txnMeta txn.TxnMeta)

LogTxnStart1PCCommit log Txn start 1pc commit

func LogTxnStart1PCCommitFailed added in v0.6.0

func LogTxnStart1PCCommitFailed(
	logger *zap.Logger,
	txnMeta txn.TxnMeta,
	err error)

LogTxnStart1PCCommitFailed log Txn 1pc commit failed

func LogTxnStart2PCCommit added in v0.6.0

func LogTxnStart2PCCommit(
	logger *zap.Logger,
	txnMeta txn.TxnMeta)

LogTxnStart2PCCommit log Txn start 2pc commit

func LogTxnStartAsyncCommit added in v0.6.0

func LogTxnStartAsyncCommit(
	logger *zap.Logger,
	txnMeta txn.TxnMeta)

LogTxnStartAsyncCommit log start async commit distributed txn task

func LogTxnStartAsyncRollback added in v0.6.0

func LogTxnStartAsyncRollback(
	logger *zap.Logger,
	txnMeta txn.TxnMeta)

LogTxnStartAsyncRollback log start async rollback txn task

func LogTxnUpdated added in v0.6.0

func LogTxnUpdated(
	logger *zap.Logger,
	txnMeta txn.TxnMeta)

LogTxnUpdated log txn updated

func LogTxnWaitUncommittedTxnsFailed added in v0.6.0

func LogTxnWaitUncommittedTxnsFailed(
	logger *zap.Logger,
	txnMeta txn.TxnMeta,
	waitTxns [][]byte,
	err error)

LogTxnWaitUncommittedTxnsFailed log Txn wait other uncommitted txns change to committed or abortted failed.

func LogTxnWaiterAdded added in v0.6.0

func LogTxnWaiterAdded(
	logger *zap.Logger,
	txnMeta txn.TxnMeta,
	waitStatus txn.TxnStatus)

LogTxnWaiterAdded log txn waiter added

func LogTxnWrite added in v0.6.0

func LogTxnWrite(
	logger *zap.Logger,
	txnMeta txn.TxnMeta)

LogTxnWrite log txn write

func LogTxnWriteFailed added in v0.6.0

func LogTxnWriteFailed(
	logger *zap.Logger,
	txnMeta txn.TxnMeta,
	err error)

LogTxnWriteFailed log Txn write failed.

func LogTxnWriteOnInvalidStatus added in v0.6.0

func LogTxnWriteOnInvalidStatus(
	logger *zap.Logger,
	txnMeta txn.TxnMeta)

LogTxnWriteOnInvalidStatus log Txn write on invalid txn status.

func TxnDNShardField added in v0.5.1

func TxnDNShardField(dn metadata.DNShard) zap.Field

TxnDNShardField returns a dn shard zap field

func TxnField added in v0.5.1

func TxnField(txnMeta txn.TxnMeta) zap.Field

TxnField returns a txn zap field

func TxnIDField

func TxnIDField(txnMeta txn.TxnMeta) zap.Field

TxnIDField returns a txn id field

func TxnIDFieldWithID added in v0.5.1

func TxnIDFieldWithID(id []byte) zap.Field

TxnIDFieldWithID returns a txn id field

func TxnIDsField added in v0.6.0

func TxnIDsField(txnIDs [][]byte) zap.Field

TxnIDsField returns a txn ids field

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL