I am trying to transfer data from sql to c#. I am using the offical MongoDB Nu Get package driver … V2.7.0
I insert the object async in a while loop and then check the object.id (see below)
redakMongo.RedakDocuments.InsertOneAsync(redakDocument); if (redakDocument.Id == ObjectId.Empty) continue;
The first question is does the data transfer occur when 1 replica node is down??
Because i don’t know if a node was down during the transfer, the only thing that i have down is to change the primary node.
But the fact is i got an object.id back from the mongo driver and the data was not into the database?
I changed the primary node and start the data transfer again and it was working?
How can i be sure that this erro doesn’t occur again? How can i get a object.id back and the data is not in the database?
Here is the repica setting