Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alibaba/MongoShake
/ functions
Functions
933 in github.com/alibaba/MongoShake
⨍
Functions
933
◇
Types & classes
171
↓ 3 callers
Method
String
()
collector/reader/oplog_reader.go:76
↓ 3 callers
Method
Time
()
tools/mongo_id.go:21
↓ 3 callers
Method
TryNext
()
common/change_stream.go:144
↓ 3 callers
Method
UpdateQueryTimestamp
set query timestamp when first start
collector/reader/reader.go:13
↓ 3 callers
Method
checkCheckpointUpdate
checkCheckpointUpdate wait for checkpoint reach newestTs which mean oplog is written to dest db when barrier is true, max time is about 3 second (Chec
collector/syncer.go:382
↓ 3 callers
Function
checkConflict
()
cmd/collector/sanitize.go:411
↓ 3 callers
Method
close
(self)
scripts/comparison.py:41
↓ 3 callers
Method
decodeHeader
(buffer []byte)
tunnel/tcp_writer.go:99
↓ 3 callers
Method
dispatchBatches
(batchGroup [][]*oplog.GenericOplog)
collector/batcher.go:149
↓ 3 callers
Method
doCommand
* * command operation * Generally speaking, we should use `applyOps` command in mongodb to insert these data, * but this way will make the oplog
executor/db_writer.go:46
↓ 3 callers
Method
encode
()
tunnel/tcp_writer.go:86
↓ 3 callers
Method
ensureNetwork
()
tunnel/tcp_writer.go:133
↓ 3 callers
Function
exit_process
(code)
scripts/run_sys_test.py:200
↓ 3 callers
Function
findValueByKey
(keyName string, document *bson.D)
oplog/txn_buffer.go:306
↓ 3 callers
Function
handleNamespace
(srcC *mongo.Client, dstC *mongo.Client, dbName, collName string)
tools/pre-split/pre_split.go:668
↓ 3 callers
Method
markCollectionProcessing
(collectionMetric *CollectionMetric)
collector/docsyncer/doc_syncer.go:620
↓ 3 callers
Function
mockDisTxnOplogs
(startTs int64, normalOplog bool, isCommit bool)
collector/batcher_test.go:373
↓ 3 callers
Function
mockDisTxnPartialOplogs
(startTs int64, normalOplog bool, isCommit bool)
collector/batcher_test.go:507
↓ 3 callers
Method
next
fetch oplog from reader.
collector/syncer.go:627
↓ 3 callers
Function
normalizeFilterOpTypes
(opTypes []string)
cmd/collector/sanitize.go:332
↓ 3 callers
Function
promotion
()
quorum/quorum.go:190
↓ 3 callers
Method
recordLastFetchStats
(logs []*oplog.GenericOplog, now time.Time)
collector/syncer.go:582
↓ 3 callers
Function
replayUpdateViaApplyOps
replayUpdateViaApplyOps replays an update oplog directly via applyOps command, preserving the original $v:2 diff format. This is used for time-series
executor/db_writer.go:440
↓ 3 callers
Method
setReplStatusCode
(status uint64)
common/metric.go:348
↓ 3 callers
Function
sourceTimeFromTimestamp
********************************deserializer end**********************************/
collector/syncer.go:529
↓ 3 callers
Method
startDocumentReplication
()
collector/coordinator/full.go:61
↓ 3 callers
Method
startOplogReplication
(oplogStartPosition interface{}, fullSyncFinishPosition int64, startTsMap map[string]int64)
collector/coordinator/incr.go:15
↓ 3 callers
Function
stringHashValue
(s string)
oplog/hasher.go:146
↓ 3 callers
Function
tcpErrorAndRelease
(socket *TcpSocket, err string)
tunnel/tcp_writer.go:259
↓ 3 callers
Function
transformTimeseriesNs
transformTimeseriesNs transforms a namespace that may belong to a time-series collection. For 'system.buckets.xxx', it uses the logical collection nam
executor/executor.go:390
↓ 3 callers
Function
versionGTE
(v1, v2)
tools/pre-split/dryRun_range.js:35
↓ 2 callers
Method
AckRequired
** * Indicate weather this tunnel cares about ACK feedback value. * Like RPC_TUNNEL (ack required is true), it's asynchronous and * needs peer r
tunnel/tunnel.go:123
↓ 2 callers
Method
AcquireReplicaSetName
()
common/community_client.go:198
↓ 2 callers
Method
AddGet
(incr uint64)
common/metric.go:244
↓ 2 callers
Method
AllAcked
(allAcked bool)
collector/worker.go:87
↓ 2 callers
Function
ApplyOpsFilter
ApplyOpsFilter is synced from utils.ApplyOpsFilter
oplog/change_stream_event_test.go:99
↓ 2 callers
Method
ClearReplStatus
(status uint64)
common/metric.go:343
↓ 2 callers
Method
Close
()
collector/docsyncer/doc_reader.go:433
↓ 2 callers
Method
Crc32
()
tunnel/tunnel.go:53
↓ 2 callers
Function
EncodeMongoURI
EncodeMongoURI encodes MongoDB URIs, mainly performing URL encoding on the password part. expected to handle the following URI: 1) normal one: "mongod
common/community_client.go:283
↓ 2 callers
Method
EnsureNetwork
()
collector/reader/event_reader.go:145
↓ 2 callers
Function
ExtractTimestampForLog
(ts interface{})
common/mix.go:73
↓ 2 callers
Method
FetchBucket
()
common/speed.go:37
↓ 2 callers
Function
FileName
(identifier string)
journal/journal.go:34
↓ 2 callers
Method
FilterNs
(namespace string)
collector/filter/doc_filter.go:94
↓ 2 callers
Function
FindFiledPrefix
(input bson.D, prefix string)
oplog/oplog.go:231
↓ 2 callers
Method
FromBytes
(buf []byte, order binary.ByteOrder)
tunnel/tunnel.go:75
↓ 2 callers
Function
GetBalancerStatusByUrl
get balancer status from config server
sharding/sharding_operation.go:31
↓ 2 callers
Function
GetChunkMapByUrl
(csUrl string)
sharding/sharding_operation.go:72
↓ 2 callers
Function
GetMongoClient
(uri string)
tools/pre-split/pre_split.go:116
↓ 2 callers
Method
GetTxnStream
GetTxnStream returns a channel of Oplog entries in a transaction and a channel for errors. If the buffer has been stopped, the returned op channel wi
oplog/txn_buffer.go:169
↓ 2 callers
Method
HasOplogNs
(queryCondition bson.M)
common/community_client.go:186
↓ 2 callers
Method
InitDiskQueue
(dqName string)
collector/persister.go:81
↓ 2 callers
Function
InitialLoggerWithRotation
(logDir, logFile, level string, logFlush bool, verbose, maxSizeMB, maxAge int)
common/common.go:74
↓ 2 callers
Method
IsData
IsData is true if the oplog entry contains transaction data
oplog/txn_meta.go:103
↓ 2 callers
Method
IsGood
()
common/metric.go:397
↓ 2 callers
Method
IsMultiOp
IsMultiOp is true if the oplog entry is part of a prepared and/or large transaction.
oplog/txn_meta.go:126
↓ 2 callers
Function
IsRunOnAdminCommand
(operation string)
oplog/cmd_oplog.go:55
↓ 2 callers
Function
LogEntryEncode
(logs []*GenericOplog)
oplog/oplog.go:61
↓ 2 callers
Function
NewCheckUniqueIndexExistsJob
(interval int, collections []string, urls []*utils.MongoSource)
collector/coordinator/extra_job.go:62
↓ 2 callers
Function
NewDBSyncer
( id int, fromMongoUrl string, fromReplset string, toMongoUrl string, nsTrans *transform.NamespaceTransfo
collector/docsyncer/doc_syncer.go:346
↓ 2 callers
Function
NewDocExecutor
(id int, colExecutor *CollectionExecutor, conn *utils.MongoCommunityConn, syncer *DBSyncer)
collector/docsyncer/doc_executor.go:143
↓ 2 callers
Function
NewEventReader
NewEventReader creates reader with mongodb url
collector/reader/event_reader.go:48
↓ 2 callers
Function
NewJournal
(name string)
journal/journal.go:38
↓ 2 callers
Function
NewOrphanFilter
(replset string, chunkMap sharding.DBChunkMap)
collector/filter/orphan_filter.go:31
↓ 2 callers
Function
NewPartialLog
(data bson.M)
oplog/oplog.go:86
↓ 2 callers
Function
NewPersister
(replset string, sync *OplogSyncer)
collector/persister.go:49
↓ 2 callers
Function
NewWhiteListObjectIdHasher
(whiteList []string)
oplog/hasher.go:87
↓ 2 callers
Method
OldestOpTime
OldestOpTime returns the optime of the oldest buffered transaction, or an empty optime if no transactions are buffered. This will include committed tr
oplog/txn_buffer.go:224
↓ 2 callers
Method
Panic
(args ...any)
pkg/log/logger.go:265
↓ 2 callers
Method
RestAPI
()
collector/syncer.go:735
↓ 2 callers
Method
SetLSNCheckpoint
(ckpt int64)
common/metric.go:296
↓ 2 callers
Method
SetOplogGetDelay
(delay int64)
common/metric.go:328
↓ 2 callers
Method
SetQueryTimestampOnEmpty
start fetcher
collector/reader/reader.go:12
↓ 2 callers
Method
Start
()
tunnel/kafka/sync_writer.go:40
↓ 2 callers
Method
String
()
collector/reader/event_reader.go:58
↓ 2 callers
Method
Sync
* * Receiver message and do the following steps: * 1. if we need re-transmit, this log will be discard * 2. validate the checksum * 3. decompress
receiver/replayer.go:54
↓ 2 callers
Function
TimestampGreaterThan
TimestampGreaterThan returns true if lhs comes after rhs, false otherwise.
oplog/txn_optime.go:10
↓ 2 callers
Function
TimestampLessThan
TimestampLessThan returns true if lhs comes before rhs, false otherwise.
oplog/txn_optime.go:15
↓ 2 callers
Function
TimestampToString
(ts int64)
common/mix.go:47
↓ 2 callers
Function
TransformDBRef
(logObject bson.D, db string, nsTrans *NamespaceTransform)
collector/transform/transform.go:74
↓ 2 callers
Method
WriteRecord
(oplog *oplog.PartialLog)
journal/journal.go:48
↓ 2 callers
Function
_get_mongodb_addr
(src_url)
scripts/run_sys_test.py:79
↓ 2 callers
Method
addSignature
(signature string)
executor/collision_matrix.go:60
↓ 2 callers
Function
assertNoStateForID
(t *testing.T, meta TxnMeta, buffer *TxnBuffer)
oplog/txn_test.go:288
↓ 2 callers
Function
buildWriteSyncer
( target zapcore.WriteSyncer, logFlush bool, )
pkg/log/logger.go:107
↓ 2 callers
Function
calculatePendingQueueConcurrency
********************************deserializer begin**********************************/ deserializer: pending_queue -> logs_queue how many pending queue
collector/syncer.go:428
↓ 2 callers
Method
checkIndexKeyTypeConsistency
checkIndexKeyTypeConsistency checks whether the min and max values of the parallel index key share the same BSON type. If they differ (excluding numer
collector/docsyncer/doc_reader.go:211
↓ 2 callers
Function
chunkGt
(x, y interface{})
collector/filter/orphan_filter.go:150
↓ 2 callers
Function
chunkLt
(x, y interface{})
collector/filter/orphan_filter.go:196
↓ 2 callers
Method
close
(self)
tools/mongodb-schema.py:43
↓ 2 callers
Method
close
()
collector/ckpt/ckpt_operation.go:114
↓ 2 callers
Method
close
(self)
scripts/comparison_3x.py:42
↓ 2 callers
Function
combinePrefixField
(prefixField string, obj interface{})
oplog/oplog.go:444
↓ 2 callers
Method
compareCheckpointAndDbTs
* * compare current checkpoint and database timestamp * @return: * int64: the smallest newest timestamp of all mongod * bool: can run incr
collector/coordinator/utils.go:23
↓ 2 callers
Method
connect
(self)
tools/mongodb-schema.py:40
↓ 2 callers
Method
connect
(self)
scripts/comparison_3x.py:39
↓ 2 callers
Method
connect
(self)
scripts/comparison.py:38
↓ 2 callers
Method
convert
(segment []*PartialLogWithCallback)
executor/collision_matrix.go:32
↓ 2 callers
Function
convertToRule
convert input namespace filter to regex string e.g., namespace-filter = []string{"db1", "db2.collection2"} return: ^(db1|db2.collection2)$|(db1\.|db2\
collector/filter/oplog_filter.go:233
← previous
next →
201–300 of 933, ranked by callers