-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.0.1, 4.1.0, 4.1.1, 4.1.3, 4.1.2, 4.3.1, 4.1.4, 4.2.0, 4.2.1, 4.2.2, 4.3.0
-
Component/s: Change Streams
What problem are you facing?
We are on migration process of our Mongo servers to version 5.0. Making this happen, it was necessary an upgrade from our services to new driver (>=4.0) where we found a problem that didn't use to happen in a previous versions (<4.0).
We have been using the Mongo resource "collection watcher" for update our caches into the applications, but we noticed that Mongo Atlas makes a not planning rebalance of the nodes ReplicaSet. When this happen the class ChangeStream receives a close signal and the applications stop receiving new database updates.
What driver and relevant dependency versions are you using?
Driver NODEJS version 4.1
Steps to reproduce?
1 - Create a basic ChangeStream and listen the close event;
2 - Start application;
3 - Execute failover test into the interface Mongo Atlas, or change the primary node of the replicaSet manually;
4 - The application must receive close signal and stop receiving new updates.
OBS:
**
I am wait a solution for this problem some months, in the old versions(<4.0) this problem don't exists. It's rigth the solution of this problem to be a Improvement?
This problem is forcing that my company take restart some applications always that mongo atlas changes your primary node. I believe that problem is a bug and should have more priority.
Thank you
- backported by
-
NODE-3672 ChangeStream closing when Mongo Atlas execute the rebalance
- Closed
-
NODE-3673 Investigate NODE-3672 - ChangeStream closing when Mongo Atlas execute the rebalance
- Closed
-
NODE-3583 Clarify server selection process for change stream resume
- Closed
- depends on
-
NODE-3948 MongoSystemError objects should have a `code` property if the server sends back an error code.
- Closed
-
NODE-4051 Investigate NODE-3672 - Race Condition in change stream error handling
- Closed
-
NODE-3894 Investigate NODE-3893 - ChangeStream closing when Mongo Atlas execute the rebalance (2)
- Closed
- is depended on by
-
NODE-3970 Add integration test for "change streams pin to a connection"
- Backlog
- is duplicated by
-
NODE-3672 ChangeStream closing when Mongo Atlas execute the rebalance
- Closed
-
NODE-4475 Collection watcher resumability (ChangeStream)
- Closed
- is related to
-
NODE-4125 Fix ChangeStream resumabilty
- Closed
-
NODE-4475 Collection watcher resumability (ChangeStream)
- Closed