Hello all and thanks admins for accepting me.
I am having a problem with mongodb (version 4.2), specifically with the Change Stream functionality.
I have a ReplicaSet cluster consisting of 1 primary, 1 secondary and 1 Arbiter and, in the code (Spring boot), I have a .watch () process on a collection of interest.
Basically, the stream works fine. When an insert / update operation occurs, the event is recognized and the document is streamed correctly.
However, when one of the two nodes (either the primary or the secondary) goes down, the watcher stops streaming anything.
Update/insert operations continue fine. Therefore, the program keeps interfacing correctly with the database, even after re-election of the primary.
However, the stream is blocked. As soon as I restart one of the two nodes, the stream immediately resumes correctly and also shows me the events not streamed previously.
Can anyone help me to solve this problem?
Thanks in advance.