I am using MongoDB 4.0 as 3 nodes replica-set. 2 data nodes and 1 arbiter. My application (ASP.NET Core 2.2) uses change stream. Consider this scenario, my primary node goes down, my secondary node becomes primary and I replace in my replica-set the node that is down with a new node and it starts to be synced. What will happen to my change stream in this case?
And my second question is, in my application, readPreference
is secondary
and when my secondary node goes down I expect MongoDB to automatically read from primary
but it didn't happen and my application had issue in read. Is it normal?