[SERVER-85581] cannot resume stream; the resume token was not found Created: 23/Jan/24  Updated: 06/Feb/24

Status: Needs Verification
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Blocker - P1
Reporter: Anand Singh Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

We are currently in the process of enabling Change Data Capture (CDC) for a MongoDB database through Debezium. Although we've successfully loaded historical data as part of the CDC configuration, we are facing an error while trying to load incremental data.

Mongodb Version : 6.0.10

debezum version :2.2.1 Final

Let us know incase of any further information required . 

We increased the oplog size from 5GB to 10GB, but we are still encountering the same error. Please find the error log below.

{"t":

{"$date":"2024-01-22T00:59:17.767+05:30"}

,"s":"W",  "c":"COMMAND",  "id":23799,   "ctx":"conn3418957","msg":"Aggregate command executor error","attr":{"error":{"code":280,"codeName":"ChangeStreamFatalError","errmsg":"cannot resume stream; the resume token was not found. {_data: \"8265AD6044000000032B022C0100296E5A100403FD8102EC5B4F1FB8AA52E32DDD575246645F6964006465AD60443FC5B6BE2DAB83AE0004\"}"},"stats":{},"cmd":{"aggregate":1,"pipeline":[{"$changeStream":{"fullDocument":"updateLookup","allChangesForCluster":true,"resumeAfter":

{"_data":"8265AD602F0000000E2B022C0100296E5A1004917E0BE6BBE14491B525D958D67E425746645F6964006465AD602FB6A851511014BC610004"}

}},{"$addFields":{"namespace":

{"$concat":["$ns.db",".","$ns.coll"]}

}},{"$match":{"$and":[{"namespace":{"$regularExpression":

{"pattern":"test.test","options":"i"}

}},{"operationType":{"$in":["insert","update","replace","delete"]}}]}},{"$addFields":{"namespace":"$$REMOVE"}}],"cursor":{},"$db":"admin","lsid":{"id":{"$uuid":"403288f7-bffe-42fe-9216-633fcc198e72"}},"$readPreference":{"mode":"secondaryPreferred"}}}}


Generated at Thu Feb 08 06:58:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.