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
↓ 1 callers
Method
dispatchBuffer
()
collector/persister.go:203
↓ 1 callers
Method
doSync
(logs []*OplogRecord)
executor/executor.go:235
↓ 1 callers
Method
doUpdateOnInsert
(database, collection string, metadata bson.E, oplogs []*OplogRecord, upsert bool)
executor/db_writer_bulk.go:82
↓ 1 callers
Method
doUpdateOnInsert
(database, collection string, metadata bson.E, oplogs []*OplogRecord, upsert bool)
executor/db_writer_single.go:96
↓ 1 callers
Method
doUpdateOnInsert
(database, collection string, metadata bson.E, oplogs []*OplogRecord, upsert bool)
executor/db_writer_command.go:72
↓ 1 callers
Function
documents_equal
(doc1, doc2)
scripts/comparison_3x.py:152
↓ 1 callers
Method
dropConnection
()
executor/operation.go:49
↓ 1 callers
Method
encode
(id int)
tunnel/kafka_writer.go:116
↓ 1 callers
Method
ensureConnection
()
executor/operation.go:23
↓ 1 callers
Method
ensureNetwork
ensureNetwork establish the mongodb connection at first if current connection is not ready or disconnected
collector/docsyncer/doc_reader.go:374
↓ 1 callers
Method
errorIgnore
errorIgnore will ignore some known errors
executor/operation.go:164
↓ 1 callers
Method
execute
(group *OplogsGroup)
executor/operation.go:54
↓ 1 callers
Method
executeInParallel
(logs []*OplogRecord)
executor/executor.go:131
↓ 1 callers
Function
extractSourceTime
(raw []byte, log *oplog.PartialLog)
collector/syncer.go:543
↓ 1 callers
Function
fetchChunkMap
(isSharding bool)
collector/coordinator/full.go:20
↓ 1 callers
Method
fetcher
fetch oplog tp store disk queue or memory
collector/reader/oplog_reader.go:149
↓ 1 callers
Method
fetcher
fetch change stream event tp store disk queue or memory
collector/reader/event_reader.go:120
↓ 1 callers
Function
fillupOperationValues
(log *PartialLogWithCallback)
executor/collision_matrix.go:65
↓ 1 callers
Method
filterApplyOpsDML
filterApplyOpsDML removes matching DML ops inside applyOps and returns the remaining inner ops.
collector/filter/oplog_filter.go:105
↓ 1 callers
Method
findFirstAvailableBatch
()
collector/worker.go:126
↓ 1 callers
Method
get
()
collector/reader/event_reader.go:96
↓ 1 callers
Method
getBatch
get a batch
collector/batcher.go:162
↓ 1 callers
Function
getExitPoint
()
collector/batcher.go:48
↓ 1 callers
Function
getKafkaCompression
getKafkaCompression 根据kafkaCompression值获取对应的枚举
tunnel/kafka/common.go:130
↓ 1 callers
Method
getNewestTimestamp
get newest oplog
collector/reader/oplog_reader.go:279
↓ 1 callers
Method
getOldestTimestamp
get oldest oplog
collector/reader/oplog_reader.go:285
↓ 1 callers
Function
getOpsForCase
(name string, data bson.Raw)
oplog/txn_test.go:56
↓ 1 callers
Function
getPrimaryShard
getPrimaryShard return the primary shard name of specified db
tools/pre-split/pre_split.go:343
↓ 1 callers
Function
getPrimaryShard
(dbName)
tools/pre-split/dryRun_range.js:84
↓ 1 callers
Method
getProvider
()
common/sentinel.go:63
↓ 1 callers
Function
getShardsList
getShardsList return all shardNames from config.shards
tools/pre-split/pre_split.go:318
↓ 1 callers
Function
getShardsList
()
tools/pre-split/dryRun_range.js:74
↓ 1 callers
Function
getTimestampMap
(sources []*utils.MongoSource, sslRootFile string)
collector/coordinator/full.go:44
↓ 1 callers
Method
getTunnelTraffic
()
common/metric.go:189
↓ 1 callers
Function
getValueFromBsonD
*********************************************/
oplog/hasher.go:113
↓ 1 callers
Function
handleDeprecateConf
()
cmd/collector/sanitize.go:60
↓ 1 callers
Function
handleExit
()
cmd/receiver/receiver.go:135
↓ 1 callers
Function
handleExit
()
cmd/collector/collector.go:234
↓ 1 callers
Method
handler
* * Users should modify this function according to different demands. */
receiver/replayer.go:112
↓ 1 callers
Method
hasApplyOpsDMLFilter
hasApplyOpsDMLFilter reports whether inner applyOps rewriting is relevant for the current filter configuration.
collector/filter/oplog_filter.go:93
↓ 1 callers
Function
haveMinMaxKey
(min, max)
tools/pre-split/dryRun_range.js:112
↓ 1 callers
Function
haveMutualIndex
(first, second *oplog.PartialLog)
executor/collision_matrix.go:309
↓ 1 callers
Function
in
(target string, strArray []string)
collector/docsyncer/doc_syncer.go:60
↓ 1 callers
Method
ingester
(state *txnState)
oplog/txn_buffer.go:128
↓ 1 callers
Method
init
()
common/metric.go:98
↓ 1 callers
Function
initAllClients
()
tools/pre-split/pre_split.go:139
↓ 1 callers
Method
initPrometheusSeries
()
common/metric.go:194
↓ 1 callers
Method
installModules
()
collector/write_controller.go:79
↓ 1 callers
Method
isCheckpointExist
()
collector/coordinator/utils.go:117
↓ 1 callers
Method
isCrashError
(errMsg string)
collector/syncer.go:705
↓ 1 callers
Function
isEqual
(x, y []bson.D, t *testing.T)
collector/docsyncer/doc_syncer_test.go:513
↓ 1 callers
Method
journal
(oplog *oplog.PartialLog)
journal/journal.go:66
↓ 1 callers
Function
loadCert
(data []byte)
common/community_client.go:56
↓ 1 callers
Method
loadCheckpoint
* * load checkpoint and do some checks */
collector/checkpoint.go:31
↓ 1 callers
Function
lookupOpName
(op string)
executor/operation.go:261
↓ 1 callers
Function
makeSession
(uri string)
quorum/quorum.go:181
↓ 1 callers
Method
merge
(group *OplogsGroup, log *OplogRecord)
executor/combiner.go:65
↓ 1 callers
Function
mergeOplogStreams
MergeOplogStreams combines oplog arrays such that the order of entries is random, but order-preserving with respect to each initial stream.
oplog/txn_test.go:264
↓ 1 callers
Function
moveChunkIfNeeded
(dstC *mongo.Client, dbName, collName string, hasHashed bool)
tools/pre-split/pre_split.go:357
↓ 1 callers
Method
newCheckpointManager
(name string, startPosition interface{})
collector/checkpoint.go:16
↓ 1 callers
Function
newTxnState
(op *GenericOplog)
oplog/txn_buffer.go:40
↓ 1 callers
Function
newUniqueIdentifier
(order int, log *PartialLogWithCallback)
executor/collision_matrix.go:140
↓ 1 callers
Function
normalizeMaxAge
(maxAge int)
pkg/log/logger.go:130
↓ 1 callers
Function
normalizeMaxSize
(maxSizeMB int)
pkg/log/logger.go:123
↓ 1 callers
Method
parallelDocumentOplog
TODO, set initSyncFinishTs into worker run full-sync and incr-sync in parallel
collector/coordinator/replication.go:238
↓ 1 callers
Function
parseAuth
parse the auth (user@pwd)
tunnel/kafka/common.go:120
↓ 1 callers
Function
parseDocKeyValue
(x interface{})
collector/docsyncer/doc_reader.go:280
↓ 1 callers
Function
parseLogLevel
(level string)
pkg/log/logger.go:137
↓ 1 callers
Method
poll
only master(maybe several mongo-shake start) can poll oplog.
collector/syncer.go:596
↓ 1 callers
Method
pollRemoteAckValue
()
tunnel/tcp_writer.go:159
↓ 1 callers
Function
preCheck
check if both client is created through mongos and have sufficient permissions(not implemented)
tools/pre-split/pre_split.go:201
↓ 1 callers
Function
preShardingForHashed
preShardingForHashed does the pre-sharding work for hashed sharding
tools/pre-split/pre_split.go:582
↓ 1 callers
Function
preSharingForRange
(dbName, collName)
tools/pre-split/dryRun_range.js:215
↓ 1 callers
Function
random_string
(randomlength=8)
tools/data_generator.py:25
↓ 1 callers
Method
read
()
tunnel/file_reader.go:74
↓ 1 callers
Function
readBecomeMasterCall
(t *testing.T, calls <-chan struct { uri string db string })
cmd/collector/collector_test.go:154
↓ 1 callers
Function
readTestData
()
oplog/txn_test.go:44
↓ 1 callers
Method
recvGetAck
(socket *net.TCPConn)
tunnel/tcp_reader.go:115
↓ 1 callers
Method
recvTransfer
(socket *net.TCPConn)
tunnel/tcp_reader.go:79
↓ 1 callers
Method
releaseCursor
()
collector/reader/oplog_reader.go:290
↓ 1 callers
Method
releaseCursor
()
collector/docsyncer/doc_reader.go:422
↓ 1 callers
Method
replay
(logs []*PartialLogWithCallback)
executor/executor.go:95
↓ 1 callers
Method
replay
()
tunnel/kafka_reader.go:30
↓ 1 callers
Method
replicateShouldStall
TODO
executor/executor.go:128
↓ 1 callers
Method
resetEverySecond
(items []*MetricDelta)
common/metric.go:113
↓ 1 callers
Method
resizeLimit
()
common/speed.go:48
↓ 1 callers
Method
retain
(batch []*oplog.GenericOplog)
collector/worker.go:254
↓ 1 callers
Method
retrieve
()
collector/persister.go:239
↓ 1 callers
Function
runNonTxnMetaCase
(t *testing.T, c *TestData)
oplog/txn_test.go:116
↓ 1 callers
Function
runOplog
(data *PartialLog)
oplog/change_stream_event_test.go:370
↓ 1 callers
Function
runTxnMetaCase
(t *testing.T, c *TestData)
oplog/txn_test.go:126
↓ 1 callers
Method
sanitizeMongoDB
()
collector/coordinator/replication.go:109
↓ 1 callers
Function
sanitizeOptions
()
cmd/receiver/receiver.go:80
↓ 1 callers
Function
selectLeader
()
cmd/collector/collector.go:209
↓ 1 callers
Method
send
()
tunnel/kafka/reader.go:52
↓ 1 callers
Method
send
(input []byte)
tunnel/kafka/sync_writer.go:53
↓ 1 callers
Method
serializeDocumentOplog
run incr-sync after full-sync
collector/coordinator/replication.go:194
↓ 1 callers
Method
setPayload
(payload []byte)
tunnel/tcp_writer.go:81
↓ 1 callers
Method
shouldDelay
()
collector/worker.go:110
↓ 1 callers
Method
shouldDispatchBuffer
(flush bool)
collector/persister.go:193
← previous
next →
501–600 of 933, ranked by callers