spring-projects / spring-projects/spring-data-mongodb

Make ChangeStreamOptionsBuilder support startAtOperationTime [DATAMONGO-2607]

Open
#3,460 6 comments 0 reactions 1 assignee View on GitHub

@christophstrobl is already working on this.

Since Dec 30, 2020.

in: core status: ideal-for-contribution type: enhancement
Dominant language
Java
Stars
1.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Johan Haleby opened DATAMONGO-2607 and commented

Newer versions of the MongoDB java driver (and server) supports "startAtOperationTime" for change streams (https://docs.mongodb.com/manual/changeStreams/) to be able to resume a change stream even after an "invalidate" event. But the ChangeStreamOptionsBuilder currently only allows specifying "resumeAt" and not "startAtOperationTime" which prohibits this use case. In the application I'm developing this is really important but I cannot find a workaround when using Spring Data MongoDB. 

It would be great if this could be supported by Spring Data MongoDB as well


Affects: 3.1 M1 (2020.0.0), 3.0.2 (Neumann SR2)

Reference URL: https://stackoverflow.com/questions/55184492/difference-between-resumeafter-and-startatoperationtime-in-mongodb-change-stream

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.