Hi, @Dominic_Grekov,

Welcome to the MongoDB Community Forums. I understand that you updated your application from an earlier driver and server version to a later one and your UpdateSchedules method is no longer behaving as expected.

Examining the provided server log line, the update found one matching document and modified it.

“keysExamined”:1,“docsExamined”:1,“nMatched”:1,“nModified”:1,“nUpserted”:0,

As far as the server is concerned, the operation was completed successfully. When you are verifying that the document was updated, are you connecting to the primary node to query it? There is going to be a replication delay to secondaries, which can range from milliseconds to longer depending on how heavily loaded the cluster is.

I will note that the matching document was found using a COLLSCAN, which means that you don’t have an index defined on CompanyId. I would recommend defining an index if finding and updating calendars by CompanyId is a common operation in your application.

Hope that helps.

Sincerely,
James