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
↓ 2 callers
Function
countChunks
countChunks count the number of chunks for specified sharded collection, support all db versions
tools/pre-split/pre_split.go:625
↓ 2 callers
Function
countChunks
(dbName, collName, uuid)
tools/pre-split/dryRun_range.js:94
↓ 2 callers
Method
currentQueue
()
collector/batcher.go:521
↓ 2 callers
Method
ensureNetwork
()
collector/ckpt/ckpt_operation.go:69
↓ 2 callers
Function
extractOriginalSpecs
extractOriginalSpecs extracts originalSpec from each index in a commitIndexBuild oplog. For indexes that have originalSpec, it uses the originalSpec a
executor/db_writer.go:408
↓ 2 callers
Function
fetchIndexes
* * fetch all indexes. * the cost is low so that no need to run in parallel. */
collector/coordinator/utils.go:198
↓ 2 callers
Method
filter
(log *oplog.PartialLog)
collector/batcher.go:122
↓ 2 callers
Method
filterNsByRules
filterNsByRules checks namespace against white/black list regex rules.
collector/filter/doc_filter.go:121
↓ 2 callers
Method
filterOplogGid
(batchedOplog [][]*oplog.GenericOplog)
collector/syncer.go:713
↓ 2 callers
Function
generateWMessage
return $nr oplog inside
tunnel/writer_test.go:17
↓ 2 callers
Function
getDbVersion
()
tools/pre-split/dryRun_range.js:19
↓ 2 callers
Function
getDbVersionArray
(client *mongo.Client)
tools/pre-split/pre_split.go:171
↓ 2 callers
Method
getLastOplog
* * return the last oplog, if the current batch is empty(first oplog in this batch is ddl), * just return the last oplog in the previous batch. * i
collector/batcher.go:118
↓ 2 callers
Function
getNetAddr
()
quorum/quorum.go:203
↓ 2 callers
Function
getOplogTimestamp
(conn *MongoCommunityConn, sortType int)
common/db_opertion.go:115
↓ 2 callers
Method
getOptions
()
common/sentinel.go:52
↓ 2 callers
Method
getQueryTimestamp
()
collector/reader/oplog_reader.go:100
↓ 2 callers
Function
getShardKeyAndUuid
getShardKeyAndUuid return shard key, type(range/hashed) and uuid if exists
tools/pre-split/pre_split.go:252
↓ 2 callers
Function
getShardKeyAndUuid
(dbName, collName)
tools/pre-split/dryRun_range.js:44
↓ 2 callers
Function
getSourceDbUrl
priority use mongo_s_url
cmd/collector/sanitize.go:24
↓ 2 callers
Method
handleTransaction
(txnMeta oplog.TxnMeta, genericLog *oplog.GenericOplog)
collector/batcher.go:446
↓ 2 callers
Function
haveMinMaxKey
haveMinMaxKey return true if bound have 'minKey' or 'maxKey'
tools/pre-split/pre_split.go:447
↓ 2 callers
Function
initStartupHTTPApis
()
cmd/collector/collector.go:175
↓ 2 callers
Method
innerRun
()
collector/coordinator/extra_job.go:74
↓ 2 callers
Function
intersectionInOrder
(one bson.M, other bson.M)
executor/collision_matrix.go:288
↓ 2 callers
Function
isNumericBsonType
isNumericBsonType returns true if the BSON type is a numeric type. MongoDB treats int32, int64, double, and decimal128 as comparable in sort order, so
collector/docsyncer/doc_reader.go:202
↓ 2 callers
Method
isTransaction
(partialLog *oplog.PartialLog)
collector/batcher.go:431
↓ 2 callers
Function
lsnLagSeconds
************************************************************/
common/metric.go:363
↓ 2 callers
Function
mapTestTxnByID
()
oplog/txn_test.go:74
↓ 2 callers
Method
markCollectionFinished
(collectionMetric *CollectionMetric)
collector/docsyncer/doc_syncer.go:633
↓ 2 callers
Function
marshalData
(input bson.M)
oplog/change_stream_event_test.go:68
↓ 2 callers
Function
masterChanged
(status int)
quorum/quorum.go:41
↓ 2 callers
Function
mockEvent
mock change stream event
collector/syncer_test.go:46
↓ 2 callers
Method
moveToNextQueue
()
collector/batcher.go:516
↓ 2 callers
Function
parse
parse the address (topic@broker1,broker2,...)
tunnel/kafka/common.go:103
↓ 2 callers
Function
parseJsonValue
(input []byte)
tunnel/writer_test.go:37
↓ 2 callers
Function
preSharingForRange
preSharingForRange does the pre-sharing work for range sharding
tools/pre-split/pre_split.go:465
↓ 2 callers
Method
probe
()
collector/worker.go:245
↓ 2 callers
Method
purge
Because state is currently kept in memory, purge merely drops the reference so the GC will eventually clean up. Eventually, this might clean up a fil
oplog/txn_buffer.go:53
↓ 2 callers
Method
purgeACK
()
collector/worker.go:262
↓ 2 callers
Function
removeUncheck
(m)
tools/mongodb-schema.py:47
↓ 2 callers
Function
run_full_sync
(conf_name, src_url, dst_url)
scripts/run_sys_test.py:96
↓ 2 callers
Function
run_incr_sync
(conf_name, src_url, dst_url)
scripts/run_sys_test.py:164
↓ 2 callers
Function
sourceTimeFromGenericOplog
(log *oplog.GenericOplog)
collector/syncer.go:533
↓ 2 callers
Function
testBufferOps
(t *testing.T, buffer *TxnBuffer, ops []ParsedLog, txnByID map[TxnID]*TestData)
oplog/txn_test.go:203
↓ 2 callers
Function
transformPartialLog
(partialLog *oplog.PartialLog, nsTrans *transform.NamespaceTransform, transformRef bool)
executor/executor.go:281
↓ 2 callers
Function
usage
()
tools/mongodb-schema.py:132
↓ 2 callers
Function
usage
()
scripts/comparison_3x.py:218
↓ 2 callers
Function
usage
()
scripts/comparison.py:186
↓ 2 callers
Function
versionCompare
(v1, v2)
tools/pre-split/dryRun_range.js:27
↓ 2 callers
Function
wait
(duration time.Duration)
quorum/quorum.go:199
↓ 2 callers
Function
waitClosed
(t *testing.T, ch <-chan struct{}, msg string)
cmd/collector/collector_test.go:134
↓ 1 callers
Method
AddApply
(incr uint64)
common/metric.go:269
↓ 1 callers
Method
AddCheckpoint
(number uint64)
common/metric.go:249
↓ 1 callers
Method
AddConsume
(incr uint64)
common/metric.go:279
↓ 1 callers
Function
AddExtraJob
(name string, interval int, input ...interface{})
collector/coordinator/extra_job.go:29
↓ 1 callers
Method
AddFailed
(incr uint64)
common/metric.go:274
↓ 1 callers
Method
AddRetransmission
(number uint64)
common/metric.go:254
↓ 1 callers
Method
AddTunnelTraffic
(number uint64)
common/metric.go:259
↓ 1 callers
Method
Apply
()
common/metric.go:227
↓ 1 callers
Method
ApproximateSize
()
tunnel/tunnel.go:107
↓ 1 callers
Method
Bind
Bind bind different worker
collector/syncer.go:189
↓ 1 callers
Function
Checkpoint
(ckptMap map[string]utils.TimestampNode)
collector/docsyncer/doc_syncer.go:301
↓ 1 callers
Method
Clear
(s uint64)
common/metric.go:389
↓ 1 callers
Method
Close
()
collector/docsyncer/doc_reader.go:92
↓ 1 callers
Method
Compress
(chunk []byte)
modules/compress.go:36
↓ 1 callers
Function
ConvertV2Oplog
(prefixField string, obj bson.D)
oplog/oplog.go:372
↓ 1 callers
Method
Counter
()
tools/mongo_id.go:32
↓ 1 callers
Method
Crashf
(format string, args ...any)
pkg/log/logger.go:272
↓ 1 callers
Method
Create
create specific Tunnel with tunnel name and pass connection or usefully meta
tunnel/tunnel.go:184
↓ 1 callers
Method
CurrentDate
()
common/community_client.go:254
↓ 1 callers
Method
Decompress
(compressed []byte)
modules/compress.go:37
↓ 1 callers
Method
DistributeOplogByMod
DistributeOplogByMod We need to ensure that oplog entry will be sent to the same job[$hash] if they have the same ObjectID. thus we can consume the op
oplog/hasher.go:53
↓ 1 callers
Method
EnsureNetwork
EnsureNetwork establish the mongodb connection at first if current connection is not ready or disconnected
collector/reader/oplog_reader.go:209
↓ 1 callers
Function
ExactlyMatch
(first, second interface{})
executor/collision_matrix.go:224
↓ 1 callers
Function
FetchAllDocumentBsonD
(client *mongo.Client, testDb string, testCollection string, opts *options.FindOptions)
unit_test_common/common.go:9
↓ 1 callers
Method
FetchNewestTimestamp
ensure network
collector/reader/reader.go:16
↓ 1 callers
Method
FilterNs
(namespace string)
collector/filter/doc_filter.go:55
↓ 1 callers
Method
FilterNs
(namespace string)
collector/filter/doc_filter.go:69
↓ 1 callers
Function
GatherApplyOps
(input []*PartialLog)
oplog/oplog.go:249
↓ 1 callers
Function
GenerateCollExecutorId
()
collector/docsyncer/doc_executor.go:45
↓ 1 callers
Function
GenerateDocExecutorId
()
collector/docsyncer/doc_executor.go:139
↓ 1 callers
Function
GenerateExecutorId
()
executor/executor.go:205
↓ 1 callers
Method
GetAcked
()
receiver/replayer.go:105
↓ 1 callers
Function
GetAllTimestamp
GetAllTimestamp get all newest timestamp
common/db_opertion.go:177
↓ 1 callers
Function
GetColShardType
input given namespace, return all keys and shard type(range or hashed)
sharding/sharding_operation.go:171
↓ 1 callers
Function
GetCompressorByName
(name string)
modules/compress.go:40
↓ 1 callers
Function
GetDBVersion
GetDBVersion return string of db version with format like "3.0.1"
common/db_opertion.go:50
↓ 1 callers
Function
GetKeyWithIndex
(log bson.D, wanted string)
oplog/oplog.go:135
↓ 1 callers
Function
GetKeyWithIndex
(log bson.D, wanted string)
common/parse.go:12
↓ 1 callers
Function
GetListCollectionQueryCondition
(conn *MongoCommunityConn)
common/db_opertion.go:291
↓ 1 callers
Function
GetMetricWithSize
(input interface{})
common/metric.go:427
↓ 1 callers
Function
GetNewestTimestampByConn
GetNewestTimestampByConn return newest oplog
common/db_opertion.go:127
↓ 1 callers
Method
GetNext
()
common/change_stream.go:137
↓ 1 callers
Function
GetOldestTimestampByConn
GetOldestTimestampByConn return oldest oplog
common/db_opertion.go:133
↓ 1 callers
Function
GetOldestTimestampByUrl
(url string, fromMongoS bool, sslRootFile string)
common/db_opertion.go:154
↓ 1 callers
Method
GetQueryTsFromDiskQueue
()
collector/persister.go:98
↓ 1 callers
Function
GetTxnOpTimeFromOplogEntry
GetTxnOpTimeFromOplogEntry returns an TxnOpTime struct from the relevant fields in an ParsedLog struct.
oplog/txn_optime.go:30
↓ 1 callers
Method
Handle
** * Handle outstanding request message. and messages * are passed one by one. Any changes of message in * Handle() will be preserved and delive
collector/write_controller.go:41
↓ 1 callers
Method
Handle
Handle is called on every oplog consumed
collector/syncer.go:43
← previous
next →
301–400 of 933, ranked by callers