Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReactiveMongoTemplate.changeStream ignores FullDocumentBeforeChange option passed with argument ChangeStreamOptions #4539

Closed
gautampushpa2008 opened this issue Oct 27, 2023 · 1 comment
Labels
status: duplicate A duplicate of another issue

Comments

@gautampushpa2008
Copy link

Hello Team,

Recently working on the SpringBoot Reactive change stream API, I found that the ReactiveMongoTemplate.changeStream method doesn't consider the FullDocumentBeforeChange option passed along with the argument ChangeStreamOptions, and the publisher i.e., ChangeStreamPublisherImpl always use the FullDocumentBeforeChange.DEFAULT option while watching the change events on a collection. Due to this, I am unable to retrieve the preimage of a collection from the MongoDB and the value for field fullDocumentBeforeChange is always null in the ChangeStreamEvent. Could you please provide a solution for this?

Spring boot version: 3.1.0/3.1.5
Dependency: org.springframework.boot:spring-boot-starter-data-mongodb-reactive

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 27, 2023
@christophstrobl
Copy link
Member

Thanks for the report - this seems to be a duplicate of #4495 which needs to be fixed.

@christophstrobl christophstrobl closed this as not planned Won't fix, can't repro, duplicate, stale Nov 2, 2023
@christophstrobl christophstrobl added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants