-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
does not return ChangeStreamEvents
with PreImages
#4495
Comments
Thank you @PhilippAllstadt for bringing this to our attention. |
Thank you for your response. Yes, i think the problem is prepareFilter method: `public Flux<ChangeStreamEvent> changeStream(@nullable String database, @nullable String collectionName,
prepareFilter:
` Changestreamoptions aren´t type of agg and returned list is empty. So, would you fix that by the next release? Thank you very much |
Oh my god, I've been searching for the cause of this problem for a long time! I'm also having this issue! |
Hi there, is there any update to this issue ? This feature would be very important for our use case. Thank you. |
ReactiveMongoTemplate
does not return ChangeStreamEvents
with PreImages
…lisher. This commit ensures to pass on a potentially set FullDocumentBeforeChange option to the change stream iterable/publisher. It also corrects false optional behavior within the change stream task which did some defaulting though the actual value is an optional one that must not be present. Original pull request: #4541 Closes #4495
…lisher. This commit ensures to pass on a potentially set FullDocumentBeforeChange option to the change stream iterable/publisher. It also corrects false optional behavior within the change stream task which did some defaulting though the actual value is an optional one that must not be present. Original pull request: #4541 Closes #4495
Hi @ALL,
in our use case we have the requirement to consume changestream events with pre-images. We are using MongoDB version 6.0.7.
Further, our spring version is the newest and we are using the latest mongodb drivers.
Despite it, delete and update events haven´t filled fullDocumentBeforeChange in raw if event is consumed in our spring app.
In database. pre-images should work because we´ve tested consuming via mongosh shell.
This is our code to consume change stream in our spring app:
var collectionChangeStream = reactiveMongoTemplate .changeStream(TransactionEntity.class) .withOptions( (optionsBuilder) -> optionsBuilder .returnFullDocumentBeforeChange() .returnFullDocumentOnUpdate()) .watchCollection("transaction");
Am I missing something?
Thank you very much.
The text was updated successfully, but these errors were encountered: