DocumentDB start_at_operation_time 参数给出“modifyChangeStreams 尚未为此集合/数据库/集群运行”

问题描述 投票:0回答:1

stream = coll.watch(full_document="updateLookup",start_at_operation_time=x)

投掷

pymongo.errors.OperationFailure:尚未为此集合/数据库/集群运行modifyChangeStreams,完整错误:{'ok': 0.0, 'operationTime': Timestamp(1704966523, 1), 'code': 136, 'errmsg' : 'modifyChangeStreams 尚未为此集合/数据库/集群运行'}

然而,

stream = coll.watch(full_document="updateLookup")
工作正常,表明modifyChangeSteams已启用

DocumentDB 是 4.0,

start at operation time
预计可以工作

该集合包含 2019 年的数据。我尝试过从当时到 2024 年的 start_at_operation_time 时间戳 - 都出现相同的错误

仅存在问题(但未解决)的相关资源 -

mongodb amazon-web-services mongodb-query streaming aws-documentdb
1个回答
0
投票

我也面临同样的问题。虽然我的数据是最近的,并且我正在从头开始开发一些东西,但它是第一次工作,但当我设置更改流事件驱动流时,我确实删除了我的 Db 集合,因为它包含大量测试数据,之后即使我尝试禁用 Cloud9 的流并重新启用它,我也会收到此错误。我尝试清除所有数据并删除 cloudformation 堆栈、Lambda ESM 触发器并重新启用更改流,但它对我不起作用。 如果您找到原因,请告诉我。谢谢

© www.soinside.com 2019 - 2024. All rights reserved.