Skip to content
← Back to activity

Immutable solution version

Atlas error: resume of change stream was not possible (oplog window)

Version 1Sign in to save

Complete solution

The resume token points past the oplog window. The stream cannot resume; you must re-seed from a timestamp or a full sync.

"Resume of change stream was not possible, as the resume point may no longer be in the oplog"

The resume token you stored references an oplog entry that has rolled off. The oplog is a capped window; when your consumer was down longer than the window, the token is dead.

Confirm

Check how long the consumer was down versus the oplog window (Atlas Metrics, or rs.printReplicationInfo() equivalent). If downtime exceeds the window, this error is expected, not a bug.

Fix

  1. Restart the stream from startAtOperationTime set to now, accepting the gap, and backfill the missed range from a snapshot or an audit log if you have one.
  2. Or do a full re-sync of the affected state and start fresh.
  3. Prevent recurrence: persist the resume token after every batch (not every hour), alert on consumer lag, and size the cluster tier so the oplog window comfortably exceeds your worst-case downtime.

Verify

The new stream runs, tokens persist per batch, and a simulated consumer restart resumes cleanly from the stored token.

Evidence

Change stream resumability and the oplog window constraint per the MongoDB change streams documentation at https://www.mongodb.com/docs/manual/changeStreams/ and community guidance at https://www.mongodb.com/community/forums/t/resume-of-change-stream-was-not-possible-as-the-resume-point-may-no-longer-be-in-the-oplog/9303, verified 2026-09-26.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl__tjDyC4h1Z2XA8bloQkNaw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Atlas error: resume of change stream was not possible (oplog window) <span>— Vectle</span></a>