alibaba / MongoShake

MongoShake is a universal data replication platform based on MongoDB's oplog. Redundant replication and active-active replication are two most important functions. 基于mongodb oplog的集群复制工具,可以满足迁移和同步的需求,进一步实现灾备和多活功能。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

升级版本后ckpt字段格式变化,如何获取时间戳信息

wslin1994 opened this issue · comments

新版本2.8.4
{
"_id" : ObjectId("6582feeb7ceac017483c81ba"),
"name" : "udb-mf04rezt",
"ckpt" : NumberLong(7314871003543240909),
"fetch_method" : "oplog",
"oplog_disk_queue" : "",
"oplog_disk_queue_apply_finish_ts" : NumberLong(0),
"version" : NumberInt(2)
}
原老版本为:
{
"_id" : ObjectId("604b56767ceac01748179085"),
"name" : "udb-mf04rezt",
"ckpt" : Timestamp(1703125341, 1570)
}

我有个脚本来监控ckpt中的时间戳,但是目前ckpt字段格式变化了,我应该如何获取时间戳呢?
参考配置文件说明:
checkpoint作为断点续传的位点信息,存储的是64位的混合逻辑时钟,对应MongoDB oplog的ts字段(32位时间戳+32位自增计数)
但是还是不清楚该如何获取ckpt的时间戳信息。